Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-07 10:37:57

0001 /*
0002 ** $Id: lundump.h $
0003 ** load precompiled Lua chunks
0004 ** See Copyright Notice in lua.h
0005 */
0006 
0007 #ifndef lundump_h
0008 #define lundump_h
0009 
0010 #include "llimits.h"
0011 #include "lobject.h"
0012 #include "lzio.h"
0013 
0014 
0015 /* data to catch conversion errors */
0016 #define LUAC_DATA   "\x19\x93\r\n\x1a\n"
0017 
0018 #define LUAC_INT    0x5678
0019 #define LUAC_NUM    cast_num(370.5)
0020 
0021 /*
0022 ** Encode major-minor version in one byte, one nibble for each
0023 */
0024 #define LUAC_VERSION  (((LUA_VERSION_NUM / 100) * 16) + LUA_VERSION_NUM % 100)
0025 
0026 #define LUAC_FORMAT 0   /* this is the official format */
0027 
0028 /* load one chunk; from lundump.c */
0029 LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name);
0030 
0031 /* dump one chunk; from ldump.c */
0032 LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w,
0033                          void* data, int strip);
0034 
0035 #endif