[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Hacking Lua for debug information
- From: Alexander Gladysh <agladysh@...>
- Date: Mon, 19 Mar 2012 01:03:45 +0400
On Sun, Mar 18, 2012 at 05:08, Florian Hester <florian@celaeno.org> wrote:
> I am trying to create a debug function which shows what is currently on the
> stack, since it is a debug function and wont end up in a release build, i
> decided to dive in to the guts of Lua.
FWIW, this may be useful (no messing with guts though):
https://github.com/lua-nucleo/lua-nucleo/blob/master/c/lua-nucleo/lstack.h
https://github.com/lua-nucleo/lua-nucleo/blob/master/c/lstack.c
Usage example may be found here:
https://github.com/lua-alchemy/lua-alchemy/blob/master/alchemy/wrapper/bridge_as3_lua.c
Alexander.