How to find out which Lua function called my C++ function, if C++ function exported in scripts by luabind, using callstack in MVS?

有帮助吗?

解决方案

You can use the functions lua_getstack and lua_getinfo to retrieve various useful debug information including the callstack.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top