|
In a Lua function, there is always enough stack for two
registers
...
the invocation of a Lua hook function leaves an
artifact on the hooked function's stack frame
Given that this technique already requires the debug library, I'd say
there is a far more regular and simpler way to achieve the goal.