The Battle for Wesnoth  1.15.2+dev
Macros | Functions
lundump.h File Reference
#include "llimits.h"
#include "lobject.h"
#include "lzio.h"
Include dependency graph for lundump.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LUAC_DATA   "\x19\x93\r\n\x1a\n"
 
#define LUAC_INT   0x5678
 
#define LUAC_NUM   cast_num(370.5)
 
#define MYINT(s)   (s[0]-'0')
 
#define LUAC_VERSION   (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR))
 
#define LUAC_FORMAT   0 /* this is the official format */
 

Functions

LUAI_FUNC LClosureluaU_undump (lua_State *L, ZIO *Z, const char *name)
 
LUAI_FUNC int luaU_dump (lua_State *L, const Proto *f, lua_Writer w, void *data, int strip)
 

Macro Definition Documentation

◆ LUAC_DATA

#define LUAC_DATA   "\x19\x93\r\n\x1a\n"

Definition at line 16 of file lundump.h.

Referenced by checkHeader(), checkliteral(), and DumpHeader().

◆ LUAC_FORMAT

#define LUAC_FORMAT   0 /* this is the official format */

Definition at line 23 of file lundump.h.

Referenced by checkHeader(), and DumpHeader().

◆ LUAC_INT

#define LUAC_INT   0x5678

Definition at line 18 of file lundump.h.

Referenced by checkHeader(), and DumpHeader().

◆ LUAC_NUM

#define LUAC_NUM   cast_num(370.5)

Definition at line 19 of file lundump.h.

Referenced by checkHeader(), and DumpHeader().

◆ LUAC_VERSION

#define LUAC_VERSION   (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR))

Definition at line 22 of file lundump.h.

Referenced by checkHeader(), and DumpHeader().

◆ MYINT

#define MYINT (   s)    (s[0]-'0')

Definition at line 21 of file lundump.h.

Function Documentation

◆ luaU_dump()

LUAI_FUNC int luaU_dump ( lua_State L,
const Proto f,
lua_Writer  w,
void *  data,
int  strip 
)

◆ luaU_undump()

LUAI_FUNC LClosure* luaU_undump ( lua_State L,
ZIO Z,
const char *  name 
)