lua-users home
lua-l archive

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


It was thus said that the Great Philipp Kraus once stated:
> Hello,
> 
> thanks for this code excerpt. 
> 
> 
> Am 07.10.2014 um 13:05 schrieb Udo Schroeter <udo.schroeter@gmail.com>:
> 
> >     luaL_checktype(L, 1, LUA_TFUNCTION);
> >           lua_settop(L, 1);
> 
> I would like to dump all script functions. Can I iterate over all script function and
> push the functions on the stack top and run after this the dump?

  You can compile Lua scripts using "luac".  The output will be Lua
bytecode, which can then be loaded using the same functions that you use to
load regular Lua scripts.

  -spc