lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 在 2017年12月16日,上午9:11,Dibyendu Majumdar <mobile@majumdar.org.uk> 写道:
> 
>> On 16 December 2017 at 01:05, Italo Maia <italo.maia@gmail.com> wrote:
>> What would a lua hook be?
>> 
> 
> Apologies I should have been clearer about this. Before a bytecode is
> executed Lua checks if it needs to invoke a hook. This check has some
> overhead especially when computed gotos are enabled, as you can
> imagine at every jump there is an 'if .. ' check.

So, maybe we can write two version luaV_execute ? With and without hook?