diff options
Diffstat (limited to '')
-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); |