This is very simple Lua stack dumper. It extracts all element values by using lua_tostring whatever the types is not a string. It looks work well, but the problem is that lua_tostring overwrites values in the stack by string version.
One of correct code is below. The programmer always needed to take a step to ensure their correct types when accessing the Lua stack.
No comments:
Post a Comment