aboutsummaryrefslogtreecommitdiff
path: root/src/tools.h
diff options
context:
space:
mode:
authorBenoit Germain <bnt period germain arrobase gmail period com>2014-01-06 10:40:14 +0100
committerBenoit Germain <bnt period germain arrobase gmail period com>2014-01-06 10:40:14 +0100
commitb335cbcc9f07dc71999b885ffa2962c0ec00f5eb (patch)
treead6398a6f7e5ef155631b984bd41d07d535ea1f9 /src/tools.h
parent132e85cb40f3a88efdb66a6344061bade628fcda (diff)
downloadlanes-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.h3
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
99void luaG_dump( lua_State* L ); 99void luaG_dump( lua_State* L );
100 100
101lua_State* luaG_newstate( lua_State* _from, int const _on_state_create, char const* libs); 101lua_State* luaG_newstate( lua_State* _from, char const* libs);
102void luaG_copy_one_time_settings( lua_State* L, lua_State* L2, char const* name_); 102void luaG_copy_one_time_settings( lua_State* L, lua_State* L2, char const* name_);
103 103
104typedef struct { 104typedef struct {
@@ -129,6 +129,7 @@ extern MUTEX_T mtid_lock;
129 129
130void populate_func_lookup_table( lua_State* L, int _i, char const* _name); 130void populate_func_lookup_table( lua_State* L, int _i, char const* _name);
131void serialize_require( lua_State *L); 131void serialize_require( lua_State *L);
132int initialize_on_state_create( lua_State *L);
132extern MUTEX_T require_cs; 133extern MUTEX_T require_cs;
133 134
134// for verbose errors 135// for verbose errors