diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2011-02-12 17:06:03 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2011-02-12 17:06:03 +0100 |
commit | a661736f7984292a41d71847de68590f6b8ca08a (patch) | |
tree | 43e0799c20e835f1cc2d8c5fa1324b64301763e0 /src/tools.h | |
parent | c91a03bd956bf19848253bded8217687ccd2ad81 (diff) | |
download | lanes-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.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 ); |