-
Notifications
You must be signed in to change notification settings - Fork 1
/
base_funcs.c
85 lines (80 loc) · 2.15 KB
/
base_funcs.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#include <time.h>
#include <setjmp.h>
#include <ctype.h>
#include "lapi.h"
#include "lauxlib.h"
#include "lcode.h"
#include "lctype.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "llex.h"
#include "llimits.h"
#include "lmem.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lopnames.h"
#include "lparser.h"
#include "lprefix.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include "luaconf.h"
#include "lua.h"
#include "lualib.h"
#include "lundump.h"
#include "lvm.h"
#include "lzio.h"
extern int luaB_xpcall(lua_State *);
extern int luaB_type(lua_State *);
extern int luaB_tostring(lua_State *);
extern int luaB_tonumber(lua_State *);
extern int luaB_setmetatable(lua_State *);
extern int luaB_select(lua_State *);
extern int luaB_rawset(lua_State *);
extern int luaB_rawget(lua_State *);
extern int luaB_rawlen(lua_State *);
extern int luaB_rawequal(lua_State *);
extern int luaB_warn(lua_State *);
extern int luaB_print(lua_State *);
extern int luaB_pcall(lua_State *);
extern int luaB_pairs(lua_State *);
extern int luaB_next(lua_State *);
extern int luaB_load(lua_State *);
extern int luaB_loadfile(lua_State *);
extern int luaB_ipairs(lua_State *);
extern int luaB_getmetatable(lua_State *);
extern int luaB_error(lua_State *);
extern int luaB_dofile(lua_State *);
extern int luaB_collectgarbage(lua_State *);
extern int luaB_assert(lua_State *);
const luaL_Reg base_funcs[] = {
{"assert", luaB_assert},
{"collectgarbage", luaB_collectgarbage},
{"dofile", luaB_dofile},
{"error", luaB_error},
{"getmetatable", luaB_getmetatable},
{"ipairs", luaB_ipairs},
{"loadfile", luaB_loadfile},
{"load", luaB_load},
{"next", luaB_next},
{"pairs", luaB_pairs},
{"pcall", luaB_pcall},
{"print", luaB_print},
{"warn", luaB_warn},
{"rawequal", luaB_rawequal},
{"rawlen", luaB_rawlen},
{"rawget", luaB_rawget},
{"rawset", luaB_rawset},
{"select", luaB_select},
{"setmetatable", luaB_setmetatable},
{"tonumber", luaB_tonumber},
{"tostring", luaB_tostring},
{"type", luaB_type},
{"xpcall", luaB_xpcall},
{"_G", ((void*)0)},
{"_VERSION", ((void*)0)},
{((void*)0), ((void*)0)}
};