aboutsummaryrefslogtreecommitdiff
path: root/src/tools.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-05-02 11:24:10 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-05-02 11:24:10 +0200
commit66499a912cbf7ca0205b68a17b430070ef94bc49 (patch)
tree7b7f3d4873e44311063063436fbdca65b194f73a /src/tools.h
parent84889233bfec4ad11ee1160fe63acbbbba7275e7 (diff)
downloadlanes-66499a912cbf7ca0205b68a17b430070ef94bc49.tar.gz
lanes-66499a912cbf7ca0205b68a17b430070ef94bc49.tar.bz2
lanes-66499a912cbf7ca0205b68a17b430070ef94bc49.zip
InterCopyContext always raises errors in a non-Keeper state
Diffstat (limited to 'src/tools.h')
-rw-r--r--src/tools.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools.h b/src/tools.h
index f5fdabc..9d4ed4c 100644
--- a/src/tools.h
+++ b/src/tools.h
@@ -42,6 +42,10 @@ class InterCopyContext
42 char const* name; // that one can change when we reuse the context 42 char const* name; // that one can change when we reuse the context
43 43
44 private: 44 private:
45 // when mode == LookupMode::FromKeeper, L1 is a keeper state and L2 is not, therefore L2 is the state where we want to raise the error
46 // whon mode != LookupMode::FromKeeper, L1 is not a keeper state, therefore L1 is the state where we want to raise the error
47 lua_State* getErrL() const { return (mode == LookupMode::FromKeeper) ? L2 : L1; }
48
45 // for use in copy_cached_func 49 // for use in copy_cached_func
46 void copy_func() const; 50 void copy_func() const;
47 void lookup_native_func() const; 51 void lookup_native_func() const;