I\'m trying to load tables from Lua to C++ but I\'m having trouble getting it right.
I\'m getting through the first iteration just fine but then at the second call to
lua_ne
Why are you doing the extra lua_pop(L, 1) at the end of the version from the reference manual? I can see how that could be a problem, since you're popping beyond the stack depth.