diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2021-06-24 17:47:20 +0200 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2021-06-24 17:47:20 +0200 |
commit | 050e14dd7fa04e2262ae6b1cc984d76c4149b664 (patch) | |
tree | 8b7cead727e2b9e545dbbd458ef4009eb099db92 /src/state.h | |
parent | 4e8242de0c5d8c853201ec49dacf5aa9a5b0f7d3 (diff) | |
download | lanes-050e14dd7fa04e2262ae6b1cc984d76c4149b664.tar.gz lanes-050e14dd7fa04e2262ae6b1cc984d76c4149b664.tar.bz2 lanes-050e14dd7fa04e2262ae6b1cc984d76c4149b664.zip |
correctly transfer the uservalue of a deep userdata
Diffstat (limited to 'src/state.h')
-rw-r--r-- | src/state.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/state.h b/src/state.h new file mode 100644 index 0000000..e844405 --- /dev/null +++ b/src/state.h | |||
@@ -0,0 +1,22 @@ | |||
1 | #ifndef __LANES_STATE_H__ | ||
2 | #define __LANES_STATE_H__ | ||
3 | |||
4 | //#include "lauxlib.h" | ||
5 | #include "threading.h" | ||
6 | #include "deep.h" | ||
7 | |||
8 | #include "macros_and_utils.h" | ||
9 | |||
10 | void serialize_require( DEBUGSPEW_PARAM_COMMA( Universe* U) lua_State *L); | ||
11 | |||
12 | // ################################################################################################ | ||
13 | |||
14 | lua_State* create_state( Universe* U, lua_State* from_); | ||
15 | lua_State* luaG_newstate( Universe* U, lua_State* _from, char const* libs); | ||
16 | |||
17 | // ################################################################################################ | ||
18 | |||
19 | void initialize_on_state_create( Universe* U, lua_State* L); | ||
20 | void call_on_state_create( Universe* U, lua_State* L, lua_State* from_, LookupMode mode_); | ||
21 | |||
22 | #endif // __LANES_STATE_H__ | ||