mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
lua: remove debugging output
This commit is contained in:
@@ -662,7 +662,6 @@ m:exec()
|
|||||||
|
|
||||||
bool CLuaInstance::tableLookup(lua_State *L, const char *what, std::string &value)
|
bool CLuaInstance::tableLookup(lua_State *L, const char *what, std::string &value)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "tableLookupString\n");
|
|
||||||
bool res = false;
|
bool res = false;
|
||||||
lua_pushstring(L, what);
|
lua_pushstring(L, what);
|
||||||
lua_gettable(L, -2);
|
lua_gettable(L, -2);
|
||||||
@@ -670,13 +669,11 @@ fprintf(stderr, "tableLookupString\n");
|
|||||||
if (res)
|
if (res)
|
||||||
value = lua_tostring(L, -1);
|
value = lua_tostring(L, -1);
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
fprintf(stderr, "res=%d\n", res);
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CLuaInstance::tableLookup(lua_State *L, const char *what, int &value)
|
bool CLuaInstance::tableLookup(lua_State *L, const char *what, int &value)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "tableLookupInt\n");
|
|
||||||
bool res = false;
|
bool res = false;
|
||||||
lua_pushstring(L, what);
|
lua_pushstring(L, what);
|
||||||
lua_gettable(L, -2);
|
lua_gettable(L, -2);
|
||||||
@@ -684,7 +681,6 @@ fprintf(stderr, "tableLookupInt\n");
|
|||||||
if (res)
|
if (res)
|
||||||
value = (int) lua_tonumber(L, -1);
|
value = (int) lua_tonumber(L, -1);
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
fprintf(stderr, "res=%d\n", res);
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user