diff options
author | Benoit Germain <bnt period germain arrobase gmail period com> | 2014-01-06 10:40:14 +0100 |
---|---|---|
committer | Benoit Germain <bnt period germain arrobase gmail period com> | 2014-01-06 10:40:14 +0100 |
commit | b335cbcc9f07dc71999b885ffa2962c0ec00f5eb (patch) | |
tree | ad6398a6f7e5ef155631b984bd41d07d535ea1f9 /src/tools.h | |
parent | 132e85cb40f3a88efdb66a6344061bade628fcda (diff) | |
download | lanes-b335cbcc9f07dc71999b885ffa2962c0ec00f5eb.tar.gz lanes-b335cbcc9f07dc71999b885ffa2962c0ec00f5eb.tar.bz2 lanes-b335cbcc9f07dc71999b885ffa2962c0ec00f5eb.zip |
fix on_state_create circular logic issue
* if config.on_state_create() is a C function, call it by direct C
closure reconstruction in newly created states
* bumped version to 3.7.6
Diffstat (limited to 'src/tools.h')
-rw-r--r-- | src/tools.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools.h b/src/tools.h index 19dca70..be358db 100644 --- a/src/tools.h +++ b/src/tools.h | |||
@@ -98,7 +98,7 @@ extern int debugspew_indent_depth; | |||
98 | 98 | ||
99 | void luaG_dump( lua_State* L ); | 99 | void luaG_dump( lua_State* L ); |
100 | 100 | ||
101 | lua_State* luaG_newstate( lua_State* _from, int const _on_state_create, char const* libs); | 101 | lua_State* luaG_newstate( lua_State* _from, char const* libs); |
102 | void luaG_copy_one_time_settings( lua_State* L, lua_State* L2, char const* name_); | 102 | void luaG_copy_one_time_settings( lua_State* L, lua_State* L2, char const* name_); |
103 | 103 | ||
104 | typedef struct { | 104 | typedef struct { |
@@ -129,6 +129,7 @@ extern MUTEX_T mtid_lock; | |||
129 | 129 | ||
130 | void populate_func_lookup_table( lua_State* L, int _i, char const* _name); | 130 | void populate_func_lookup_table( lua_State* L, int _i, char const* _name); |
131 | void serialize_require( lua_State *L); | 131 | void serialize_require( lua_State *L); |
132 | int initialize_on_state_create( lua_State *L); | ||
132 | extern MUTEX_T require_cs; | 133 | extern MUTEX_T require_cs; |
133 | 134 | ||
134 | // for verbose errors | 135 | // for verbose errors |