diff options
Diffstat (limited to 'src/keeper.h')
-rw-r--r-- | src/keeper.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/keeper.h b/src/keeper.h index 04bf834..e505361 100644 --- a/src/keeper.h +++ b/src/keeper.h | |||
@@ -7,9 +7,9 @@ class Linda; | |||
7 | enum class LookupMode; | 7 | enum class LookupMode; |
8 | class Universe; | 8 | class Universe; |
9 | 9 | ||
10 | using KeeperState = Unique<lua_State*>; | 10 | DECLARE_UNIQUE_TYPE(KeeperState,lua_State*); |
11 | using LindaLimit = Unique<int>; | 11 | DECLARE_UNIQUE_TYPE(LindaLimit, int); |
12 | using KeeperIndex = Unique<int>; | 12 | DECLARE_UNIQUE_TYPE(KeeperIndex, int); |
13 | 13 | ||
14 | // ################################################################################################# | 14 | // ################################################################################################# |
15 | 15 | ||
@@ -86,5 +86,5 @@ using keeper_api_t = lua_CFunction; | |||
86 | [[nodiscard]] int keepercall_send(lua_State* L_); | 86 | [[nodiscard]] int keepercall_send(lua_State* L_); |
87 | [[nodiscard]] int keepercall_set(lua_State* L_); | 87 | [[nodiscard]] int keepercall_set(lua_State* L_); |
88 | 88 | ||
89 | using KeeperCallResult = Unique<std::optional<int>>; | 89 | DECLARE_UNIQUE_TYPE(KeeperCallResult, std::optional<int>); |
90 | [[nodiscard]] KeeperCallResult keeper_call(KeeperState K_, keeper_api_t func_, lua_State* L_, Linda* linda_, int starting_index_); | 90 | [[nodiscard]] KeeperCallResult keeper_call(KeeperState K_, keeper_api_t func_, lua_State* L_, Linda* linda_, StackIndex starting_index_); |