/* ** Lua binding: editor ** Generated automatically by tolua++-1.0.92 on Sun Dec 13 15:12:49 2009. */ #ifndef __cplusplus #include "stdlib.h" #endif #include "string.h" #include "tolua++.h" /* Exported function */ TOLUA_API int tolua_editor_open (lua_State* tolua_S); #include "editor.hh" using namespace editor; /* function to register type */ static void tolua_reg_types (lua_State* tolua_S) { } /* function: DefineFloorGroup */ #ifndef TOLUA_DISABLE_tolua_editor_editor_DefineFloorGroup00 static int tolua_editor_editor_DefineFloorGroup00(lua_State* tolua_S) { #ifndef TOLUA_RELEASE tolua_Error tolua_err; if ( !tolua_isstring(tolua_S,1,0,&tolua_err) || !tolua_isstring(tolua_S,2,0,&tolua_err) || !tolua_isnumber(tolua_S,3,0,&tolua_err) || !tolua_istable(tolua_S,4,0,&tolua_err) || !tolua_isnoobj(tolua_S,5,&tolua_err) ) goto tolua_lerror; else #endif { const char* name = ((const char*) tolua_tostring(tolua_S,1,0)); const char* descr = ((const char*) tolua_tostring(tolua_S,2,0)); int nentries = ((int) tolua_tonumber(tolua_S,3,0)); #ifdef __cplusplus char** entries = new char*[nentries]; #else char** entries = (char**) malloc((nentries)*sizeof(char*)); #endif { #ifndef TOLUA_RELEASE if (!tolua_isstringarray(tolua_S,4,nentries,0,&tolua_err)) goto tolua_lerror; else #endif { int i; for(i=0; i= 501 TOLUA_API int luaopen_editor (lua_State* tolua_S) { return tolua_editor_open(tolua_S); }; #endif