forked from topameng/tolua_runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tolua.h
57 lines (47 loc) · 1.52 KB
/
tolua.h
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
#ifndef tolua_h
#define tolua_h
#if !defined(LUA_RIDX_MAINTHREAD)
#define LUA_RIDX_MAINTHREAD 1
#endif
#if !defined(LUA_RIDX_GLOBALS)
#define LUA_RIDX_GLOBALS 2
#endif
#define LUA_RIDX_TRACEBACK 3
#define LUA_RIDX_UBOX 4
#define LUA_RIDX_FIXEDMAP 5
#define LUA_RIDX_CHECKVALUE 6
#define LUA_RIDX_PACKVEC3 7
#define LUA_RIDX_UNPACKVEC3 8
#define LUA_RIDX_PACKVEC2 9
#define LUA_RIDX_UNPACKVEC2 10
#define LUA_RIDX_PACKVEC4 11
#define LUA_RIDX_UNPACKVEC4 12
#define LUA_RIDX_PACKQUAT 13
#define LUA_RIDX_UNPACKQUAT 14
#define LUA_RIDX_PACKCLR 15
#define LUA_RIDX_UNPACKCLR 16
#define LUA_RIDX_PACKLAYERMASK 17
#define LUA_RIDX_UNPACKLAYERMASK 18
#define LUA_RIDX_REQUIRE 19
#define LUA_RIDX_INT64 20
#define LUA_RIDX_VPTR 21
#define LUA_RIDX_UPDATE 22
#define LUA_RIDX_LATEUPDATE 23
#define LUA_RIDX_FIXEDUPDATE 24
#define LUA_RIDX_PRELOAD 25
#define LUA_RIDX_LOADED 26
#define LUA_RIDX_UINT64 27
#define LUA_RIDX_CUSTOMTRACEBACK 28
#define LUA_NULL_USERDATA 1
#define TOLUA_NOPEER LUA_REGISTRYINDEX
#define FLAG_INDEX_ERROR 1
#define FLAG_INT64 2
#define MAX_ITEM 512
#define abs_index(L, i) ((i) > 0 || (i) <= LUA_REGISTRYINDEX ? (i) : lua_gettop(L) + (i) + 1)
void tolua_openint64(lua_State* L);
int tolua_newint64(lua_State* L);
void tolua_pushint64(lua_State* L, int64_t n);
void tolua_openuint64(lua_State* L);
int tolua_newuint64(lua_State* L);
extern int toluaflags;
#endif