aboutsummaryrefslogtreecommitdiff
path: root/src/tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools.h')
-rw-r--r--src/tools.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tools.h b/src/tools.h
index f79d2ad..a06e23f 100644
--- a/src/tools.h
+++ b/src/tools.h
@@ -78,11 +78,9 @@ extern int debugspew_indent_depth;
78#define luaG_optunsigned(L,i,d) ((uint_t) luaL_optinteger(L,i,d)) 78#define luaG_optunsigned(L,i,d) ((uint_t) luaL_optinteger(L,i,d))
79#define luaG_tounsigned(L,i) ((uint_t) lua_tointeger(L,i)) 79#define luaG_tounsigned(L,i) ((uint_t) lua_tointeger(L,i))
80 80
81#define luaG_isany(L,i) (!lua_isnil(L,i))
82
83void luaG_dump( lua_State* L ); 81void luaG_dump( lua_State* L );
84 82
85lua_State* luaG_newstate( lua_State* _from, char const* libs, lua_CFunction _on_state_create); 83lua_State* luaG_newstate( lua_State* _from, int const _on_state_create, char const* libs);
86 84
87typedef struct { 85typedef struct {
88 volatile int refcount; 86 volatile int refcount;
@@ -96,6 +94,7 @@ int luaG_inter_copy( lua_State *L, lua_State *L2, uint_t n);
96int luaG_inter_move( lua_State *L, lua_State *L2, uint_t n); 94int luaG_inter_move( lua_State *L, lua_State *L2, uint_t n);
97 95
98int luaG_nameof( lua_State* L); 96int luaG_nameof( lua_State* L);
97int luaG_new_require( lua_State* L);
99 98
100// Lock for reference counter inc/dec locks (to be initialized by outside code) 99// Lock for reference counter inc/dec locks (to be initialized by outside code)
101// 100//