Merge pull request #2593 from Akury83/master
[RRG-proxmark3.git] / client / deps / liblua / lundump.h
blobb774b40936445d2fd7ee774cc540ff351145114a
1 /*
2 ** $Id: lundump.h $
3 ** load precompiled Lua chunks
4 ** See Copyright Notice in lua.h
5 */
7 #ifndef lundump_h
8 #define lundump_h
10 #include "llimits.h"
11 #include "lobject.h"
12 #include "lzio.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)
22 ** Encode major-minor version in one byte, one nibble for each
24 #define LUAC_VERSION (((LUA_VERSION_NUM / 100) * 16) + LUA_VERSION_NUM % 100)
26 #define LUAC_FORMAT 0 /* this is the official format */
28 /* load one chunk; from lundump.c */
29 LUAI_FUNC LClosure *luaU_undump(lua_State *L, ZIO *Z, const char *name);
31 /* dump one chunk; from ldump.c */
32 LUAI_FUNC int luaU_dump(lua_State *L, const Proto *f, lua_Writer w,
33 void *data, int strip);
35 #endif