sdk-world
v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Toggle main menu visibility
Loading...
Searching...
No Matches
lundump.h
Go to the documentation of this file.
1
/*
2
** $Id: lundump.h $
3
** load precompiled Lua chunks
4
** See Copyright Notice in lua.h
5
*/
6
11
#ifndef lundump_h
12
#define lundump_h
13
14
#include "
llimits.h
"
15
#include "
lobject.h
"
16
#include "
lzio.h
"
17
18
19
/* data to catch conversion errors */
20
#define LUAC_DATA "\x19\x93\r\n\x1a\n"
21
22
#define LUAC_INT 0x5678
23
#define LUAC_NUM cast_num(370.5)
24
25
/*
26
** Encode major-minor version in one byte, one nibble for each
27
*/
28
#define MYINT(s) (s[0]-'0')
/* assume one-digit numerals */
29
#define LUAC_VERSION (MYINT(LUA_VERSION_MAJOR)*16+MYINT(LUA_VERSION_MINOR))
30
31
#define LUAC_FORMAT 0
/* this is the official format */
32
33
/* load one chunk; from lundump.c */
34
LUAI_FUNC
LClosure
* luaU_undump (
lua_State
* L, ZIO* Z,
const
char
* name);
35
36
/* dump one chunk; from ldump.c */
37
LUAI_FUNC
int
luaU_dump (
lua_State
* L,
const
Proto
* f, lua_Writer w,
38
void
* data,
int
strip);
39
40
#endif
llimits.h
lobject.h
lzio.h
LClosure
Definition
lobject.h:660
Proto
Definition
lobject.h:556
lua_State
Definition
lstate.h:313
lua
src
lundump.h
Generated by
1.18.0