summaryrefslogtreecommitdiff
path: root/src/tools.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools.h')
-rw-r--r--src/tools.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tools.h b/src/tools.h
index aad26df..05bee59 100644
--- a/src/tools.h
+++ b/src/tools.h
@@ -48,19 +48,21 @@
48 48
49#define luaG_typename( L, index ) lua_typename( L, lua_type(L,index) ) 49#define luaG_typename( L, index ) lua_typename( L, lua_type(L,index) )
50 50
51typedef void (*luaG_IdFunction)( lua_State *L, char const * const which);
52
51void luaG_dump( lua_State* L ); 53void luaG_dump( lua_State* L );
52 54
53const char *luaG_openlibs( lua_State *L, const char *libs ); 55const char *luaG_openlibs( lua_State *L, const char *libs );
54 56
55int luaG_deep_userdata( lua_State *L ); 57int luaG_deep_userdata( lua_State *L, luaG_IdFunction idfunc);
56void *luaG_todeep( lua_State *L, lua_CFunction idfunc, int index ); 58void *luaG_todeep( lua_State *L, luaG_IdFunction idfunc, int index );
57 59
58typedef struct { 60typedef struct {
59 volatile int refcount; 61 volatile int refcount;
60 void *deep; 62 void *deep;
61} DEEP_PRELUDE; 63} DEEP_PRELUDE;
62 64
63void luaG_push_proxy( lua_State *L, lua_CFunction idfunc, DEEP_PRELUDE *deep_userdata ); 65void luaG_push_proxy( lua_State *L, luaG_IdFunction idfunc, DEEP_PRELUDE *deep_userdata );
64 66
65void luaG_inter_copy( lua_State *L, lua_State *L2, uint_t n ); 67void luaG_inter_copy( lua_State *L, lua_State *L2, uint_t n );
66void luaG_inter_move( lua_State *L, lua_State *L2, uint_t n ); 68void luaG_inter_move( lua_State *L, lua_State *L2, uint_t n );