lua-users home
lua-l archive

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


The Pluto library might be what you're looking for, I'm not sure if it
does in-memory serialization as well out of the box though:

http://lua-users.org/wiki/PlutoLibrary

If you can live with code serialization only, you could use the
builtin lua_dump() to serialize a function and its environment.

On Mon, Oct 6, 2014 at 6:25 PM, Philipp Kraus
<philipp.kraus@tu-clausthal.de> wrote:
> Hello,
>
> I have encapsulate the lua_state in a C++ class and I can run my Lua scripts well, but I would like to create a Copy-Ctor which creates a fill in depended clone of the current lua_state.
> How can I clone the current lua_state with a full deep-copy? Does there exists a C API function, how can I do this?
>
> Thanks a lot
>
> Phil