diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-15 14:39:05 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-15 14:39:05 +0200 |
commit | f4b0527c7d11b3a95d44b880cbdd4aae2d58ca8d (patch) | |
tree | 431f4753f41f61a4adbbaed22553a01aa6625583 /src/keeper.cpp | |
parent | e55e2a5ab1b1c411efd4d0d2f64626671a9079b4 (diff) | |
download | lanes-f4b0527c7d11b3a95d44b880cbdd4aae2d58ca8d.tar.gz lanes-f4b0527c7d11b3a95d44b880cbdd4aae2d58ca8d.tar.bz2 lanes-f4b0527c7d11b3a95d44b880cbdd4aae2d58ca8d.zip |
C++ migration: deep userdata API rework. bye bye idfunc, hello DeepFactory
Diffstat (limited to 'src/keeper.cpp')
-rw-r--r-- | src/keeper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/keeper.cpp b/src/keeper.cpp index 61321e1..36733e3 100644 --- a/src/keeper.cpp +++ b/src/keeper.cpp | |||
@@ -833,6 +833,8 @@ KeeperCallResult keeper_call(Universe* U, lua_State* K, keeper_api_t func_, lua_ | |||
833 | KeeperCallResult result; | 833 | KeeperCallResult result; |
834 | int const args{ starting_index ? (lua_gettop(L) - starting_index + 1) : 0 }; | 834 | int const args{ starting_index ? (lua_gettop(L) - starting_index + 1) : 0 }; |
835 | int const top_K{ lua_gettop(K) }; | 835 | int const top_K{ lua_gettop(K) }; |
836 | // if we didn't do anything wrong, the keeper stack should be clean | ||
837 | ASSERT_L(lua_gettop(K) == 0); | ||
836 | 838 | ||
837 | STACK_GROW(K, 2); | 839 | STACK_GROW(K, 2); |
838 | 840 | ||