diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-22 16:26:30 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-22 16:26:30 +0200 |
commit | 48985bf413bef59778a4e50ba8391938364bae56 (patch) | |
tree | 3d99f7171bbddf8d0b5948b30d7719f7b2bc0229 /src/keeper.cpp | |
parent | b639c229e3fdef21cec4535284eeabbca361dad6 (diff) | |
download | lanes-48985bf413bef59778a4e50ba8391938364bae56.tar.gz lanes-48985bf413bef59778a4e50ba8391938364bae56.tar.bz2 lanes-48985bf413bef59778a4e50ba8391938364bae56.zip |
Fix __lanesignore
Diffstat (limited to 'src/keeper.cpp')
-rw-r--r-- | src/keeper.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/keeper.cpp b/src/keeper.cpp index 9bde2d5..b0ed062 100644 --- a/src/keeper.cpp +++ b/src/keeper.cpp | |||
@@ -569,26 +569,6 @@ void Linda::releaseKeeper(Keeper* K_) const | |||
569 | 569 | ||
570 | // ################################################################################################# | 570 | // ################################################################################################# |
571 | 571 | ||
572 | void keeper_toggle_nil_sentinels(lua_State* L_, int start_, LookupMode const mode_) | ||
573 | { | ||
574 | int const _n{ lua_gettop(L_) }; | ||
575 | for (int _i = start_; _i <= _n; ++_i) { | ||
576 | if (mode_ == LookupMode::ToKeeper) { | ||
577 | if (lua_isnil(L_, _i)) { | ||
578 | kNilSentinel.pushKey(L_); | ||
579 | lua_replace(L_, _i); | ||
580 | } | ||
581 | } else { | ||
582 | if (kNilSentinel.equals(L_, _i)) { | ||
583 | lua_pushnil(L_); | ||
584 | lua_replace(L_, _i); | ||
585 | } | ||
586 | } | ||
587 | } | ||
588 | } | ||
589 | |||
590 | // ################################################################################################# | ||
591 | |||
592 | /* | 572 | /* |
593 | * Call a function ('func_name') in the keeper state, and pass on the returned | 573 | * Call a function ('func_name') in the keeper state, and pass on the returned |
594 | * values to 'L'. | 574 | * values to 'L'. |