diff options
Diffstat (limited to '')
-rw-r--r-- | src/base/songloading/songloading_strategy.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/base/songloading/songloading_strategy.hpp b/src/base/songloading/songloading_strategy.hpp index 48e115b7..3178f6ed 100644 --- a/src/base/songloading/songloading_strategy.hpp +++ b/src/base/songloading/songloading_strategy.hpp @@ -31,6 +31,15 @@ #include <boost/filesystem.hpp> #include "song.hpp" +#define _USDX_JOIN(strategy, line) _USDX_JOIN1(strategy, line) +#define _USDX_JOIN1(strategy, line) autoregistration__strategy__##line + +/* Macros to simplify registration of SongLoadingStrategy */ +#define REGISTER_SONGLOADING_STRATEGY(strategy) \ + static SongloadingStrategyFactory<strategy> \ + _USDX_JOIN(strategy, __LINE__) + + namespace usdx { class SongloadingStrategy |