[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua debug hooks
- From: Patrick Rapin <toupie300@...>
- Date: Tue, 28 Feb 2012 08:54:49 +0100
"This event only happens while Lua is executing a Lua function."
I think that you misunderstood that caveat sentence.
At any time, Lua can only be executing either a Lua function or a C
function, and nothing else.
So this sentence could be equally expressed in the opposite way:
"This event does not happens while Lua is executing a C function."
What you have in mind in that the sentence was opposing a Lua function
versus a Lua *chunk*.
But every Lua snippet becomes a Lua function after compilation !
So in your example, you were actually running inside a Lua function.