lua-users home
lua-l archive

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


> While trying to port some old code to Lua 5.3, I noticed that the compiler
> is giving me an error regarding a missing argument in lua_dump, and the
> documentation seems to be out-dated.
> 
> According to the manual: int lua_dump (lua_State *L, lua_Writer writer,
> void *data);
> while the signature in lua.h is: int (lua_dump) (lua_State *L, lua_Writer
> writer, void *data, int strip);

Thanks for the correction.

(This new parameter allows you to strip debug information when
dumpping a function. More often than not you want 0 there.)

-- Roberto