simplify
This commit is contained in:
@@ -54,10 +54,9 @@ protected:
|
||||
for( unsigned i=0; i < m_aMethods.size(); i++ )
|
||||
{
|
||||
const RegType *l = &m_aMethods[i];
|
||||
lua_pushstring( L, l->szName );
|
||||
lua_pushlightuserdata( L, (void*) l->mfunc );
|
||||
lua_pushcclosure( L, thunk, 1 );
|
||||
lua_settable( L, iMethods );
|
||||
lua_setfield( L, iMethods, l->szName );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user