aboutsummaryrefslogtreecommitdiff
path: root/src/tools.h
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2011-02-12 17:06:03 +0100
committerBenoit Germain <bnt.germain@gmail.com>2011-02-12 17:06:03 +0100
commita661736f7984292a41d71847de68590f6b8ca08a (patch)
tree43e0799c20e835f1cc2d8c5fa1324b64301763e0 /src/tools.h
parentc91a03bd956bf19848253bded8217687ccd2ad81 (diff)
downloadlanes-a661736f7984292a41d71847de68590f6b8ca08a.tar.gz
lanes-a661736f7984292a41d71847de68590f6b8ca08a.tar.bz2
lanes-a661736f7984292a41d71847de68590f6b8ca08a.zip
Changed idfunc signature and contract to clarify that fact it is not lua-callable and to be able to require the module it was exported from in the target lanes.
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 );