35 const luaL_Reg metamethods[] = {
43 luaL_getmetatable(L, T::className);
44 lua_pushstring(L, T::className);
45 lua_setfield(L, -2,
"metadata_class");
57 static int l_get(lua_State *L);
static void registerClass(lua_State *L, const luaL_Reg *methods, const luaL_Reg *metamethods)
Definition l_base.h:63
static std::vector< table_key > table
Definition keycode.cpp:32