diff options
Diffstat (limited to 'src/tools.h')
-rw-r--r-- | src/tools.h | 8 |
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 | ||
51 | typedef void (*luaG_IdFunction)( lua_State *L, char const * const which); | ||
52 | |||
51 | void luaG_dump( lua_State* L ); | 53 | void luaG_dump( lua_State* L ); |
52 | 54 | ||
53 | const char *luaG_openlibs( lua_State *L, const char *libs ); | 55 | const char *luaG_openlibs( lua_State *L, const char *libs ); |
54 | 56 | ||
55 | int luaG_deep_userdata( lua_State *L ); | 57 | int luaG_deep_userdata( lua_State *L, luaG_IdFunction idfunc); |
56 | void *luaG_todeep( lua_State *L, lua_CFunction idfunc, int index ); | 58 | void *luaG_todeep( lua_State *L, luaG_IdFunction idfunc, int index ); |
57 | 59 | ||
58 | typedef struct { | 60 | typedef struct { |
59 | volatile int refcount; | 61 | volatile int refcount; |
60 | void *deep; | 62 | void *deep; |
61 | } DEEP_PRELUDE; | 63 | } DEEP_PRELUDE; |
62 | 64 | ||
63 | void luaG_push_proxy( lua_State *L, lua_CFunction idfunc, DEEP_PRELUDE *deep_userdata ); | 65 | void luaG_push_proxy( lua_State *L, luaG_IdFunction idfunc, DEEP_PRELUDE *deep_userdata ); |
64 | 66 | ||
65 | void luaG_inter_copy( lua_State *L, lua_State *L2, uint_t n ); | 67 | void luaG_inter_copy( lua_State *L, lua_State *L2, uint_t n ); |
66 | void luaG_inter_move( lua_State *L, lua_State *L2, uint_t n ); | 68 | void luaG_inter_move( lua_State *L, lua_State *L2, uint_t n ); |