lua_getinfo always push a table (use L option) on stack even if it returns 0 (on error)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

lua_getinfo always push a table (use L option) on stack even if it returns 0 (on error)

云风 Cloud Wu
I found when I call lua_getinfo with L option, it always push a table on stack, even if it returns 0 (on error).

Maybe writing this behavior into the document [1] would be better.