/* ** Lua binding: editor ** Generated automatically by tolua 4.0a on Mon Jul 14 09:51:26 2003. */ #include "tolua.h" /* Exported function */ int tolua_editor_open (lua_State* tolua_S); void tolua_editor_close (lua_State* tolua_S); #include "editor.hh" using namespace editor; /* function to register type */ static void toluaI_reg_types (lua_State* tolua_S) { } /* function: DefineFloorGroup */ static int toluaI_editor_editor_DefineFloorGroup00(lua_State* tolua_S) { if ( !tolua_istype(tolua_S,1,LUA_TSTRING,0) || !tolua_istype(tolua_S,2,LUA_TSTRING,0) || !tolua_istype(tolua_S,3,LUA_TNUMBER,0) || !tolua_istype(tolua_S,4,LUA_TTABLE,0) || !tolua_isnoobj(tolua_S,5) ) goto tolua_lerror; else { const char* name = ((const char*) tolua_getstring(tolua_S,1,0)); const char* descr = ((const char*) tolua_getstring(tolua_S,2,0)); int nentries = ((int) tolua_getnumber(tolua_S,3,0)); const char** entries = (const char**) malloc(nentries*sizeof(char*)); { if (!tolua_arrayistype(tolua_S,4,LUA_TSTRING,nentries,0)) goto tolua_lerror; else { int i; for(i=0; i