Re: lua_sethook

  • From: Mike Pall <mike-1208@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 25 Aug 2012 13:09:22 +0200

Rajan wrote:
> Is it possible to use lua_sethook from luajit 2 with compiled
> code? I need to use it as I need to terminate the lua engine
> from an external thread. This is in the case where the lua
> engine is running code that is compiled and in an infinite loop.

There is an undocumented compile option LUAJIT_ENABLE_CHECKHOOK,
which only works under certain constraints. Please check the
description at the end of src/lj_record.c.

--Mike

Other related posts: