cleanup
This commit is contained in:
@@ -171,9 +171,9 @@ private:
|
||||
template<> const char *Luna<T>::m_sBaseClassName = #B; \
|
||||
template<> Luna<T>::RegTypeVector* Luna<T>::s_pvMethods = NULL; \
|
||||
static Luna##T registera; \
|
||||
void T::PushSelf( lua_State *L ) { Luna##T::Push( L, this ); } \
|
||||
/* Call PushSelf, so we always call the derived Luna<T>::Push. */ \
|
||||
namespace LuaHelpers { template<> void Push( T *pObject, lua_State *L ) { pObject->PushSelf( L ); } }
|
||||
void T::PushSelf( lua_State *L ) { Luna##T::Push( L, this ); } \
|
||||
/* Call PushSelf, so we always call the derived Luna<T>::Push. */ \
|
||||
namespace LuaHelpers { template<> void Push( T *pObject, lua_State *L ) { pObject->PushSelf( L ); } }
|
||||
|
||||
#define ADD_METHOD( method_name ) AddMethod( #method_name, method_name );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user