aboutsummaryrefslogtreecommitdiff
path: root/src/keeper.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/keeper.h')
-rw-r--r--src/keeper.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/keeper.h b/src/keeper.h
index 682c710..1425a3b 100644
--- a/src/keeper.h
+++ b/src/keeper.h
@@ -87,16 +87,16 @@ static constexpr UniqueKey kNilSentinel{ 0xC457D4EDDB05B5E4ull, "lanes.null" };
87 87
88using keeper_api_t = lua_CFunction; 88using keeper_api_t = lua_CFunction;
89#define KEEPER_API(_op) keepercall_##_op 89#define KEEPER_API(_op) keepercall_##_op
90#define PUSH_KEEPER_FUNC lua_pushcfunction 90
91// lua_Cfunctions to run inside a keeper state 91// lua_Cfunctions to run inside a keeper state
92[[nodiscard]] int keepercall_clear(lua_State* L_); 92[[nodiscard]] int keepercall_count(lua_State* L_);
93[[nodiscard]] int keepercall_send(lua_State* L_); 93[[nodiscard]] int keepercall_destruct(lua_State* L_);
94[[nodiscard]] int keepercall_get(lua_State* L_);
95[[nodiscard]] int keepercall_limit(lua_State* L_);
94[[nodiscard]] int keepercall_receive(lua_State* L_); 96[[nodiscard]] int keepercall_receive(lua_State* L_);
95[[nodiscard]] int keepercall_receive_batched(lua_State* L_); 97[[nodiscard]] int keepercall_receive_batched(lua_State* L_);
96[[nodiscard]] int keepercall_limit(lua_State* L_); 98[[nodiscard]] int keepercall_send(lua_State* L_);
97[[nodiscard]] int keepercall_get(lua_State* L_);
98[[nodiscard]] int keepercall_set(lua_State* L_); 99[[nodiscard]] int keepercall_set(lua_State* L_);
99[[nodiscard]] int keepercall_count(lua_State* L_);
100 100
101using KeeperCallResult = Unique<std::optional<int>>; 101using KeeperCallResult = Unique<std::optional<int>>;
102[[nodiscard]] KeeperCallResult keeper_call(KeeperState K_, keeper_api_t func_, lua_State* L_, Linda* linda_, int starting_index_); 102[[nodiscard]] KeeperCallResult keeper_call(KeeperState K_, keeper_api_t func_, lua_State* L_, Linda* linda_, int starting_index_);