Skip to content
Snippets Groups Projects
Commit eb45922b authored by Dmitry E. Oboukhov's avatar Dmitry E. Oboukhov
Browse files

code cleanup

parent 8aa0021c
Loading
......@@ -96,11 +96,8 @@ lbox_info_dynamic_meta [] =
static int
lbox_info_index(struct lua_State *L)
{
lua_pushvalue(L, lua_upvalueindex(1)); /* table */
lua_pushvalue(L, -2); /* key */
lua_gettable(L, -2); /* table[key] */
lua_remove(L, -2); /* remove table */
lua_pushvalue(L, -1); /* dup key */
lua_gettable(L, lua_upvalueindex(1)); /* table[key] */
if (!lua_isfunction(L, -1))
return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment