aboutsummaryrefslogtreecommitdiff
path: root/src/keeper.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-10-08 18:42:39 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-10-08 18:42:39 +0200
commit16b5070c0cd56e10c5074eb9903dbc3ae4e15a61 (patch)
treef6d5cdb74b505e13aa3261f7ab6192da0133b7b9 /src/keeper.h
parente939e5e6a894a042d3301e47faa05264445f27f6 (diff)
downloadlanes-16b5070c0cd56e10c5074eb9903dbc3ae4e15a61.tar.gz
lanes-16b5070c0cd56e10c5074eb9903dbc3ae4e15a61.tar.bz2
lanes-16b5070c0cd56e10c5074eb9903dbc3ae4e15a61.zip
Sprinkling StackIndex all over the place
Diffstat (limited to 'src/keeper.h')
-rw-r--r--src/keeper.h10
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;
7enum class LookupMode; 7enum class LookupMode;
8class Universe; 8class Universe;
9 9
10using KeeperState = Unique<lua_State*>; 10DECLARE_UNIQUE_TYPE(KeeperState,lua_State*);
11using LindaLimit = Unique<int>; 11DECLARE_UNIQUE_TYPE(LindaLimit, int);
12using KeeperIndex = Unique<int>; 12DECLARE_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
89using KeeperCallResult = Unique<std::optional<int>>; 89DECLARE_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_);