lua-users home
lua-l archive

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


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.