diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2024-04-14 18:27:10 +0200 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2024-04-14 18:27:10 +0200 |
commit | 69d40c81d8343a1af7e0fe61fbf20a4cf5880c25 (patch) | |
tree | cbf7aa525868040820ce6743f1a30fbb59926407 /src/deep.h | |
parent | 0d9c9bae120f92274e1c68f7abdebfcf2c24405d (diff) | |
parent | 00970610dc8fbd00a11d3b69e4702933a592ce9f (diff) | |
download | lanes-69d40c81d8343a1af7e0fe61fbf20a4cf5880c25.tar.gz lanes-69d40c81d8343a1af7e0fe61fbf20a4cf5880c25.tar.bz2 lanes-69d40c81d8343a1af7e0fe61fbf20a4cf5880c25.zip |
Merge branch 'master' of https://github.com/LuaLanes/lanes
Diffstat (limited to 'src/deep.h')
-rw-r--r-- | src/deep.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -19,7 +19,7 @@ extern "C" { | |||
19 | #include <atomic> | 19 | #include <atomic> |
20 | 20 | ||
21 | // forwards | 21 | // forwards |
22 | struct Universe; | 22 | class Universe; |
23 | 23 | ||
24 | enum class LookupMode | 24 | enum class LookupMode |
25 | { | 25 | { |
@@ -36,7 +36,7 @@ enum class DeepOp | |||
36 | Module, | 36 | Module, |
37 | }; | 37 | }; |
38 | 38 | ||
39 | using luaG_IdFunction = void*(*)( lua_State* L, DeepOp op_); | 39 | using luaG_IdFunction = void*(*)(lua_State* L, DeepOp op_); |
40 | 40 | ||
41 | // ################################################################################################ | 41 | // ################################################################################################ |
42 | 42 | ||
@@ -54,8 +54,8 @@ struct DeepPrelude | |||
54 | std::atomic<int> m_refcount{ 0 }; | 54 | std::atomic<int> m_refcount{ 0 }; |
55 | }; | 55 | }; |
56 | 56 | ||
57 | char const* push_deep_proxy(lua_State* L, DeepPrelude* prelude, int nuv_, LookupMode mode_); | 57 | [[nodiscard]] char const* push_deep_proxy(Dest L, DeepPrelude* prelude, int nuv_, LookupMode mode_); |
58 | void free_deep_prelude( lua_State* L, DeepPrelude* prelude_); | 58 | void free_deep_prelude(lua_State* L, DeepPrelude* prelude_); |
59 | 59 | ||
60 | LANES_API int luaG_newdeepuserdata( lua_State* L, luaG_IdFunction idfunc, int nuv_); | 60 | LANES_API [[nodiscard]] int luaG_newdeepuserdata(Dest L, luaG_IdFunction idfunc, int nuv_); |
61 | LANES_API DeepPrelude* luaG_todeep(lua_State* L, luaG_IdFunction idfunc, int index); | 61 | LANES_API [[nodiscard]] DeepPrelude* luaG_todeep(lua_State* L, luaG_IdFunction idfunc, int index); |