From 050e14dd7fa04e2262ae6b1cc984d76c4149b664 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 24 Jun 2021 17:47:20 +0200 Subject: correctly transfer the uservalue of a deep userdata --- src/state.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/state.h (limited to 'src/state.h') 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 @@ +#ifndef __LANES_STATE_H__ +#define __LANES_STATE_H__ + +//#include "lauxlib.h" +#include "threading.h" +#include "deep.h" + +#include "macros_and_utils.h" + +void serialize_require( DEBUGSPEW_PARAM_COMMA( Universe* U) lua_State *L); + +// ################################################################################################ + +lua_State* create_state( Universe* U, lua_State* from_); +lua_State* luaG_newstate( Universe* U, lua_State* _from, char const* libs); + +// ################################################################################################ + +void initialize_on_state_create( Universe* U, lua_State* L); +void call_on_state_create( Universe* U, lua_State* L, lua_State* from_, LookupMode mode_); + +#endif // __LANES_STATE_H__ -- cgit v1.2.3-55-g6feb