more g++ 3.4 compile fixes

This commit is contained in:
Glenn Maynard
2005-02-05 21:46:52 +00:00
parent 965d5e663d
commit d1a701a9a9
+3 -3
View File
@@ -132,13 +132,13 @@ private:
#define LUA_REGISTER_CLASS( T ) \
const char Luna<T>::s_className[] = #T; \
Luna<T>::RegTypeVector* Luna<T>::s_pvMethods = NULL; \
template<> const char Luna<T>::s_className[] = #T; \
template<> Luna<T>::RegTypeVector* Luna<T>::s_pvMethods = NULL; \
static Luna##T<T> registera; \
void T::PushSelf( lua_State *L ) { Luna##T<T>::Push( L, this ); }
#define ADD_METHOD( method_name ) \
{ CreateMethodsVector(); RegType<T> r = {#method_name,method_name}; s_pvMethods->push_back(r); }
{ Luna<T>::CreateMethodsVector(); RegType<T> r = {#method_name,method_name}; Luna<T>::s_pvMethods->push_back(r); }
#endif