diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-16 12:46:14 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-16 12:46:14 +0200 |
commit | d6f5a7795360e3c2a6fc2d424904b6daa1f2accd (patch) | |
tree | 8ac5f6c7076de45ec837d3b669ffc61f72bd4f5a /src/tools.h | |
parent | e7276bee137b87a2323b125a6a8c792de73819eb (diff) | |
download | lanes-d6f5a7795360e3c2a6fc2d424904b6daa1f2accd.tar.gz lanes-d6f5a7795360e3c2a6fc2d424904b6daa1f2accd.tar.bz2 lanes-d6f5a7795360e3c2a6fc2d424904b6daa1f2accd.zip |
C++ migration: more conversion to InterCopyContext. debugspew indentation is managed by a scope object
Diffstat (limited to 'src/tools.h')
-rw-r--r-- | src/tools.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/tools.h b/src/tools.h index e14ac65..06646d3 100644 --- a/src/tools.h +++ b/src/tools.h | |||
@@ -19,7 +19,7 @@ void push_registry_subtable(lua_State* L, UniqueKey key_); | |||
19 | 19 | ||
20 | enum class VT | 20 | enum class VT |
21 | { | 21 | { |
22 | NORMAL, | 22 | NORMAL, // keep this one first so that it's the value we get when we default-construct |
23 | KEY, | 23 | KEY, |
24 | METATABLE | 24 | METATABLE |
25 | }; | 25 | }; |
@@ -60,14 +60,16 @@ struct InterCopyContext | |||
60 | void copy_func() const; | 60 | void copy_func() const; |
61 | void copy_cached_func() const; | 61 | void copy_cached_func() const; |
62 | void inter_copy_keyvaluepair() const; | 62 | void inter_copy_keyvaluepair() const; |
63 | |||
64 | public: | ||
65 | |||
66 | [[nodiscard]] InterCopyResult inter_copy_package() const; | ||
67 | [[nodiscard]] InterCopyResult inter_copy(int n_) const; | ||
68 | [[nodiscard]] InterCopyResult inter_move(int n_) const; | ||
63 | }; | 69 | }; |
64 | 70 | ||
65 | // ################################################################################################ | 71 | // ################################################################################################ |
66 | 72 | ||
67 | [[nodiscard]] InterCopyResult luaG_inter_copy_package(Universe* U, Source L, Dest L2, int package_idx_, LookupMode mode_); | ||
68 | [[nodiscard]] InterCopyResult luaG_inter_copy(Universe* U, Source L, Dest L2, int n, LookupMode mode_); | ||
69 | [[nodiscard]] InterCopyResult luaG_inter_move(Universe* U, Source L, Dest L2, int n, LookupMode mode_); | ||
70 | |||
71 | [[nodiscard]] int luaG_nameof(lua_State* L); | 73 | [[nodiscard]] int luaG_nameof(lua_State* L); |
72 | 74 | ||
73 | void populate_func_lookup_table(lua_State* L, int _i, char const* _name); | 75 | void populate_func_lookup_table(lua_State* L, int _i, char const* _name); |