aboutsummaryrefslogtreecommitdiff
path: root/src/deep.h
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2021-06-24 17:47:20 +0200
committerBenoit Germain <bnt.germain@gmail.com>2021-06-24 17:47:20 +0200
commit050e14dd7fa04e2262ae6b1cc984d76c4149b664 (patch)
tree8b7cead727e2b9e545dbbd458ef4009eb099db92 /src/deep.h
parent4e8242de0c5d8c853201ec49dacf5aa9a5b0f7d3 (diff)
downloadlanes-050e14dd7fa04e2262ae6b1cc984d76c4149b664.tar.gz
lanes-050e14dd7fa04e2262ae6b1cc984d76c4149b664.tar.bz2
lanes-050e14dd7fa04e2262ae6b1cc984d76c4149b664.zip
correctly transfer the uservalue of a deep userdata
Diffstat (limited to 'src/deep.h')
-rw-r--r--src/deep.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/deep.h b/src/deep.h
index 8d06395..35c8bd4 100644
--- a/src/deep.h
+++ b/src/deep.h
@@ -43,8 +43,8 @@ typedef void* (*luaG_IdFunction)( lua_State* L, DeepOp op_);
43 43
44// ################################################################################################ 44// ################################################################################################
45 45
46// crc64/we of string "DEEP_VERSION_1" generated at http://www.nitrxgen.net/hashgen/ 46// fnv164 of string "DEEP_VERSION_2" generated at https://www.pelock.com/products/hash-calculator
47static DECLARE_CONST_UNIQUE_KEY( DEEP_VERSION, 0x4f4eadf0accf6c73); 47static DECLARE_CONST_UNIQUE_KEY( DEEP_VERSION, 0xB4B0119C10642B29);
48 48
49// should be used as header for full userdata 49// should be used as header for full userdata
50struct s_DeepPrelude 50struct s_DeepPrelude
@@ -57,10 +57,10 @@ struct s_DeepPrelude
57}; 57};
58typedef struct s_DeepPrelude DeepPrelude; 58typedef struct s_DeepPrelude DeepPrelude;
59 59
60char const* push_deep_proxy( Universe* U, lua_State* L, DeepPrelude* prelude, LookupMode mode_); 60char const* push_deep_proxy( Universe* U, lua_State* L, DeepPrelude* prelude, int nuv_, LookupMode mode_);
61void free_deep_prelude( lua_State* L, DeepPrelude* prelude_); 61void free_deep_prelude( lua_State* L, DeepPrelude* prelude_);
62 62
63extern LANES_API int luaG_newdeepuserdata( lua_State* L, luaG_IdFunction idfunc); 63extern LANES_API int luaG_newdeepuserdata( lua_State* L, luaG_IdFunction idfunc, int nuv_);
64extern LANES_API void* luaG_todeep( lua_State* L, luaG_IdFunction idfunc, int index); 64extern LANES_API void* luaG_todeep( lua_State* L, luaG_IdFunction idfunc, int index);
65 65
66#endif // __LANES_DEEP_H__ 66#endif // __LANES_DEEP_H__