Changeset 8418 for code/trunk/src/libraries/core/ToluaInterface.h
- Timestamp:
- May 8, 2011, 6:53:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/ToluaInterface.h
r7401 r8418 42 42 // Macro for declaring a tolua interface of a library/module 43 43 #define DeclareToluaInterface(libraryName) \ 44 static bool BOOST_PP_CAT(bDummy##libraryName, __ LINE__) = orxonox::LuaState::addToluaInterface(&tolua_##libraryName##_open, #libraryName); \45 static Loki::ScopeGuardImpl1<bool (*)(const std::string&), std::string> BOOST_PP_CAT(dummy##libraryName, __ LINE__)(&orxonox::LuaState::removeToluaInterface, #libraryName)44 static bool BOOST_PP_CAT(bDummy##libraryName, __UNIQUE_NUMBER__) = orxonox::LuaState::addToluaInterface(&tolua_##libraryName##_open, #libraryName); \ 45 static Loki::ScopeGuardImpl1<bool (*)(const std::string&), std::string> BOOST_PP_CAT(dummy##libraryName, __UNIQUE_NUMBER__)(&orxonox::LuaState::removeToluaInterface, #libraryName) 46 46 47 47 #endif /* _ToluaInterface_H__ */
Note: See TracChangeset
for help on using the changeset viewer.