diff options
author | Oliver Schneider <oliver@assarbad.net> | 2012-11-09 06:48:22 +0400 |
---|---|---|
committer | Oliver Schneider <oliver@assarbad.net> | 2012-11-09 06:48:22 +0400 |
commit | e247ee27c568cf6d7f7a0cdb112cdae0c4707ad6 (patch) | |
tree | 23701632871ae3480b8d805414398748fa4c34e5 /sandbox | |
parent | fe9407080643f1e5889b4bd30a42a358a60a02f9 (diff) |
- Now reusing the one C function instead of creating one per enumerated resource
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/luaconf/lua_conf.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sandbox/luaconf/lua_conf.cpp b/sandbox/luaconf/lua_conf.cpp index 5f9de14..f376fe3 100644 --- a/sandbox/luaconf/lua_conf.cpp +++ b/sandbox/luaconf/lua_conf.cpp @@ -76,24 +76,16 @@ int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) lua_State* L = luaWDS_open();
if(L)
{
- int stackTop = lua_gettop(L);
- fprintf(stderr, "[STACK TOP] %i (line %i)\n", stackTop, __LINE__);
+ //fprintf(stderr, "[STACK TOP] %i (line %i)\n", lua_gettop(L), __LINE__);
enumerateEmbeddedLuaScripts(L);
- fprintf(stderr, "[STACK TOP] %i (line %i)\n", stackTop, __LINE__);
int ret = luaL_dofile(L, "..\\lua_conf.lua");
- fprintf(stderr, "[STACK TOP] %i (line %i)\n", stackTop, __LINE__);
if(ret)
{
- fprintf(stderr, "%s", lua_tostring(L, -1));
lua_pop(L, 1); /* pop error message from the stack */
- fprintf(stderr, "[STACK TOP] %i (line %i)\n", stackTop, __LINE__);
lua_close(L);
- fprintf(stderr, "[STACK TOP] %i (line %i)\n", stackTop, __LINE__);
return EXIT_FAILURE;
}
- fprintf(stderr, "[STACK TOP] %i (line %i)\n", stackTop, __LINE__);
lua_close(L);
- fprintf(stderr, "[STACK TOP] %i (line %i)\n", stackTop, __LINE__);
return EXIT_SUCCESS;
}
return EXIT_FAILURE;
|