[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Different number of arguments in Lua stack in set hook function in Lua 5..4 vs Lua 5.2
- From: Francisco Olarte <folarte@...>
- Date: Tue, 3 Aug 2021 13:14:58 +0200
I may be confused but...
On Tue, Aug 3, 2021 at 12:57 PM aman agrawal <aman.161089@gmail.com> wrote:
...
>> I'm trying to run the attached program in Lua 5.2.2 and 5.4.3 but I'm getting different number of arguments in Lua stack when I check in hook function. Is anything changed related to Lua hook function call?.
Something seems to have changed, your code proves that. But AFAICS
nothing is said in the docs regarding the stack contents on hook
functions calls, so you seem to be purposely hitting undefined (tm)
behaviour ( I may have misread the docs, please point me to the
appropiate point if you know some place where stack contents are
documented ) .
Francisco Olarte.