Skip to content

Commit

Permalink
fix warning on MODULE_INVENTORY_BEGIN: misleading indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolforg committed Nov 20, 2021
1 parent 33cc306 commit 4691517
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions synfig-core/src/synfig/module.h
Expand Up @@ -77,15 +77,17 @@
//! Marks the start of a module's inventory
#define MODULE_INVENTORY_BEGIN(x) extern "C" { \
synfig::Module* _##x##_LTX_new_instance(synfig::ProgressCallback *cb) \
{ if(SYNFIG_CHECK_VERSION()){x##_modclass *mod=new x##_modclass(cb); mod->constructor_(cb); return mod; }\
if(cb)cb->error(#x": Unable to load module due to version mismatch."); return nullptr; } \
{ if(SYNFIG_CHECK_VERSION()) { x##_modclass *mod=new x##_modclass(cb); mod->constructor_(cb); return mod; }\
if(cb) { cb->error(#x": Unable to load module due to version mismatch."); } \
return nullptr; \
}; x##_modclass::x##_modclass(synfig::ProgressCallback */*cb*/) {
#else
//! Marks the start of a module's inventory
#define MODULE_INVENTORY_BEGIN(x) extern "C" { \
SYNFIG_API_EXPORT synfig::Module* x##_LTX_new_instance(synfig::ProgressCallback *cb) \
{ if(SYNFIG_CHECK_VERSION()){x##_modclass *mod=new x##_modclass(cb); mod->constructor_(cb); return mod; }\
if(cb)cb->error(#x": Unable to load module due to version mismatch."); return nullptr; } \
{ if(SYNFIG_CHECK_VERSION()) { x##_modclass *mod=new x##_modclass(cb); mod->constructor_(cb); return mod; }\
if(cb) { cb->error(#x": Unable to load module due to version mismatch."); } \
return nullptr; \
}; x##_modclass::x##_modclass(synfig::ProgressCallback */*cb*/) {
#endif

Expand Down Expand Up @@ -146,7 +148,7 @@
#define END_IMPORTERS }

//! Marks the end of a module's inventory
#define MODULE_INVENTORY_END }
#define MODULE_INVENTORY_END } }


/* === T Y P E D E F S ===================================================== */
Expand Down

0 comments on commit 4691517

Please sign in to comment.