Reformat a couple of macros.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 10 Feb 2008 09:13:44 +0000 (09:13 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 10 Feb 2008 09:13:44 +0000 (09:13 +0000)
git-svn-id: http://svn.voria.com/code@1647 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/module.h

index ec06be3..7c8cf72 100644 (file)
 #define BEGIN_LAYERS {
 
 //! DEPRECATED - use #INCLUDE_LAYER(class)
-#define LAYER(class)   synfig::Layer::register_in_book(synfig::Layer::BookEntry(class::create,class::name__,dgettext("synfig",class::local_name__),dgettext("synfig",class::category__),class::cvs_id__,class::version__));
-//#define LAYER(x) synfig::Layer::book()[synfig::String(x::name__)]=x::create;
-#define LAYER_ALIAS(class,alias)       synfig::Layer::register_in_book(synfig::Layer::BookEntry(class::create,alias,alias,CATEGORY_DO_NOT_USE,class::cvs_id__,class::version__));
+#define LAYER(class)                                                                                                                                                   \
+       synfig::Layer::register_in_book(                                                                                                                        \
+               synfig::Layer::BookEntry(class::create,                                                                                                 \
+                                                                class::name__,                                                                                                 \
+                                                                dgettext("synfig", class::local_name__),                                               \
+                                                                dgettext("synfig", class::category__),                                                 \
+                                                                class::cvs_id__,                                                                                               \
+                                                                class::version__));
+
+#define LAYER_ALIAS(class,alias)                                                                                                                               \
+       synfig::Layer::register_in_book(                                                                                                                        \
+               synfig::Layer::BookEntry(class::create,                                                                                                 \
+                                                                alias,                                                                                                                 \
+                                                                alias,                                                                                                                 \
+                                                                CATEGORY_DO_NOT_USE,                                                                                   \
+                                                                class::cvs_id__,                                                                                               \
+                                                                class::version__));
 
 //! Marks the end of the layers in the module's inventory
 #define END_LAYERS }