This commit is contained in:
Glenn Maynard
2005-06-23 09:02:04 +00:00
parent a76c3fa158
commit c8994b27f9
+3 -3
View File
@@ -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 );