diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2012-02-18 14:08:52 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2012-02-18 14:08:52 +0100 |
commit | 076344633e7b2525cf48005f84f3935f324b60bf (patch) | |
tree | 2a013da0ba2cd4a9f7eaf073a5ba128723f13154 /src/tools.h | |
parent | b4582dd0bb65a916de7fa9612880b75a17c7ae7f (diff) | |
download | lanes-076344633e7b2525cf48005f84f3935f324b60bf.tar.gz lanes-076344633e7b2525cf48005f84f3935f324b60bf.tar.bz2 lanes-076344633e7b2525cf48005f84f3935f324b60bf.zip |
* changed lanes.configure signature to receive a table instead of individual parameters
* added support for an on_state_create callback called to load custom functions in a state in addition to the base libraries
Diffstat (limited to 'src/tools.h')
-rw-r--r-- | src/tools.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tools.h b/src/tools.h index 1c9b00a..67f9874 100644 --- a/src/tools.h +++ b/src/tools.h | |||
@@ -46,13 +46,11 @@ | |||
46 | 46 | ||
47 | #define luaG_isany(L,i) (!lua_isnil(L,i)) | 47 | #define luaG_isany(L,i) (!lua_isnil(L,i)) |
48 | 48 | ||
49 | #define luaG_typename( L, index ) lua_typename( L, lua_type(L,index) ) | ||
50 | |||
51 | typedef void (*luaG_IdFunction)( lua_State *L, char const * const which); | 49 | typedef void (*luaG_IdFunction)( lua_State *L, char const * const which); |
52 | 50 | ||
53 | void luaG_dump( lua_State* L ); | 51 | void luaG_dump( lua_State* L ); |
54 | 52 | ||
55 | const char *luaG_openlibs( lua_State *L, const char *libs ); | 53 | lua_State* luaG_newstate( char const* libs, lua_CFunction _on_state_create); |
56 | 54 | ||
57 | int luaG_deep_userdata( lua_State *L, luaG_IdFunction idfunc); | 55 | int luaG_deep_userdata( lua_State *L, luaG_IdFunction idfunc); |
58 | void *luaG_todeep( lua_State *L, luaG_IdFunction idfunc, int index ); | 56 | void *luaG_todeep( lua_State *L, luaG_IdFunction idfunc, int index ); |