Jump to content
Posted 27 February 2012 - 07:35 PM
Build mobile games with native code
Posted 27 February 2012 - 10:44 PM
Posted 28 February 2012 - 01:52 AM
However, the LUA_MASKLINE function description has one giant caveat in its description:
This event only happens while Lua is executing a Lua function.
To me, that caveat sounds like it's implying that when Lua calls into a C function, no callbacks will be triggered, but when it returns from the C function, it will.
The line hook: is called when the interpreter is about to start the execution of a new line of code, or when it jumps back in the code (even to the same line). (This event only happens while Lua is executing a Lua function.)