int l_logger (lua_State *lua) {
// assert(lua == lb->lua);
- lua_getfield(lua, LUA_REGISTRYINDEX, "__LUABACKEND");
- LUABackend* lb = (LUABackend*)lua_touserdata(lua, -1);
-
int i = lua_gettop(lua);
if (i < 1)
- return 0;
+ return 0;
+
+ lua_getfield(lua, LUA_REGISTRYINDEX, "__LUABACKEND");
+ LUABackend* lb = (LUABackend*)lua_touserdata(lua, -1);
int log_level = 0;
stringstream s;
logger(log_debug, "(l_get) begin")
while rrsetidx < rrsetsize do
rrsetidx = rrsetidx + 1
- logger(log_debug, "(l_get) rrset ", rrsetidx, " : ", rrset[rrsetidx])
+ logger(log_debug, "(l_get) rrset ", rrsetidx)
return rrset[rrsetidx]
end
logger(log_debug, "(l_get) done")