[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: stopping execution with lua_sethook
- From: Ketmar Dark <ketmar@...>
- Date: Fri, 22 Jun 2007 13:52:21 +0300
On Thu, 21 Jun 2007 21:32:32 +0200
Arithmeth <email@example.com> wrote:
> I've read I can only do it safely by calling lua_sethook(). In
> particular I am using LUA_MASKLINE as mask for the hook.
you are perfectly right. see
the authors of Lua did it this way too. %-)
> 1st Question) If first() is in the middle of a C call i can't stop it,
you can do luaL_error(...), see `lua.c' and check this in your main
loop where you did lua_pcall(...). it will do the job.