diff options
Diffstat (limited to 'src/keeper.hpp')
-rw-r--r-- | src/keeper.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/keeper.hpp b/src/keeper.hpp index e2ad445..c0a8dc5 100644 --- a/src/keeper.hpp +++ b/src/keeper.hpp | |||
@@ -73,6 +73,7 @@ struct Keepers | |||
73 | static void* operator new(size_t size_) = delete; | 73 | static void* operator new(size_t size_) = delete; |
74 | 74 | ||
75 | Keepers() = default; | 75 | Keepers() = default; |
76 | void collectGarbage(); | ||
76 | void close(); | 77 | void close(); |
77 | [[nodiscard]] | 78 | [[nodiscard]] |
78 | Keeper* getKeeper(KeeperIndex idx_); | 79 | Keeper* getKeeper(KeeperIndex idx_); |
@@ -96,6 +97,8 @@ using keeper_api_t = lua_CFunction; | |||
96 | 97 | ||
97 | // lua_Cfunctions to run inside a keeper state | 98 | // lua_Cfunctions to run inside a keeper state |
98 | [[nodiscard]] | 99 | [[nodiscard]] |
100 | int keepercall_collectgarbage(lua_State* L_); | ||
101 | [[nodiscard]] | ||
99 | int keepercall_count(lua_State* L_); | 102 | int keepercall_count(lua_State* L_); |
100 | [[nodiscard]] | 103 | [[nodiscard]] |
101 | int keepercall_destruct(lua_State* L_); | 104 | int keepercall_destruct(lua_State* L_); |
@@ -116,3 +119,5 @@ int keepercall_set(lua_State* L_); | |||
116 | 119 | ||
117 | [[nodiscard]] | 120 | [[nodiscard]] |
118 | KeeperCallResult keeper_call(KeeperState K_, keeper_api_t func_, lua_State* L_, Linda* linda_, StackIndex starting_index_); | 121 | KeeperCallResult keeper_call(KeeperState K_, keeper_api_t func_, lua_State* L_, Linda* linda_, StackIndex starting_index_); |
122 | |||
123 | LUAG_FUNC(collectgarbage); | ||