[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.2 feature list?
- From: Wim Couwenberg <w.couwenberg@...>
- Date: Mon, 02 Oct 2006 19:47:29 +0200
lua_stripdebug() seems like a reasonable interface.
from lobject.h:
typedef struct Proto {
CommonHeader;
TValue *k; /* constants used by the function */
Instruction *code;
struct Proto **p; /* functions defined inside the function */
/* ... lines removed ... */
} Proto;
So lua_stripdebug should recursively strip the 'p' array, touching even
more closures. That, or lua_stripdebug would be useless for stripping a
loaded chunk.
--
Wim