diff options
author | Max Horn | 2006-04-08 12:06:07 +0000 |
---|---|---|
committer | Max Horn | 2006-04-08 12:06:07 +0000 |
commit | e7a8bb6abff3a6bee3b28aa5a599912df43ed120 (patch) | |
tree | bfdee598558bc508c07a3037321ab3d6db8a17e7 /base/plugins.h | |
parent | dc77d02c7e63ab9185870a8c6028ccab9dbbf716 (diff) | |
download | scummvm-rg350-e7a8bb6abff3a6bee3b28aa5a599912df43ed120.tar.gz scummvm-rg350-e7a8bb6abff3a6bee3b28aa5a599912df43ed120.tar.bz2 scummvm-rg350-e7a8bb6abff3a6bee3b28aa5a599912df43ed120.zip |
Modified the REGISTER_PLUGIN macro so that it allows (and requires) a trailing semicolon (this helps certain tools to parse our code better)
svn-id: r21689
Diffstat (limited to 'base/plugins.h')
-rw-r--r-- | base/plugins.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/base/plugins.h b/base/plugins.h index 678d2f5f6d..8e5efcf2ea 100644 --- a/base/plugins.h +++ b/base/plugins.h @@ -123,7 +123,8 @@ public: Engine_##ID##_create, \ Engine_##ID##_detectGames \ );\ - } + } \ + void dummyFuncToAllowTrailingSemicolon() #else #define REGISTER_PLUGIN(ID,name) \ extern "C" { \ @@ -132,7 +133,8 @@ public: PLUGIN_EXPORT GameDescriptor PLUGIN_findGameID(const char *gameid) { return Engine_##ID##_findGameID(gameid); } \ PLUGIN_EXPORT Engine *PLUGIN_createEngine(GameDetector *detector, OSystem *syst) { return Engine_##ID##_create(detector, syst); } \ PLUGIN_EXPORT DetectedGameList PLUGIN_detectGames(const FSList &fslist) { return Engine_##ID##_detectGames(fslist); } \ - } + } \ + void dummyFuncToAllowTrailingSemicolon() #endif #ifndef DYNAMIC_MODULES |