2 ** $Id: lundump.h,v 1.45 2015/09/08 15:41:05 roberto Exp $
3 ** load precompiled Lua chunks
4 ** See Copyright Notice in lua.h
15 /* data to catch conversion errors */
16 #define LUAC_DATA "\x19\x93\r\n\x1a\n"
18 #define LUAC_INT 0x5678
19 #define LUAC_NUM cast_num(370.5)
21 #define MYINT(s) (s[0]-'0')
22 #define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR))
23 #define LUAC_FORMAT 0 /* this is the official format */
25 /* load one chunk; from lundump.c */
26 LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name);
28 /* dump one chunk; from ldump.c */
29 LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w,
30 void* data, int strip);