Changeset 7703 in orxonox.OLD for branches/script_engine
- Timestamp:
- May 18, 2006, 6:14:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/script_engine/src/lib/script_engine/luna.h
r7702 r7703 4 4 5 5 #include <string> 6 #include <iostream> 6 7 7 8 #include "luaincl.h" … … 81 82 lua_newtable(L); /* new table object */ 82 83 int objRef = luaL_ref (L, LUA_REGISTRYINDEX); 84 std::cout<<"test"<<std::endl; 83 85 if(lua_getmetatable(L, objRef) != 0) 84 86 { 87 std::cout<<"test"<<std::endl; 88 lua_pushstring (L, "__gc"); 85 89 lua_pushcfunction(L, &Luna<T>::gc_obj); 90 lua_rawset(L,-3); 86 91 // lua_setfield(L, objRef, "__gc"); 87 92 }
Note: See TracChangeset
for help on using the changeset viewer.