Original Post
lua_gettable pops a key from the stack and returns (on the stack) the contents of the table at that key. The table is left where it was in the stack. I think gettable should return a value. but I cannot do v = lua_gettabel(...) as int i = lua_tonumber(...) where is the value it return?