You can use the functions lua_getstack and lua_getinfo to retrieve various useful debug information including the callstack.
LuaBind get function name
Question
How to find out which Lua function called my C++ function, if C++ function exported in scripts by luabind, using callstack in MVS?
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow