aboutsummaryrefslogtreecommitdiff
path: root/src/tools.h
diff options
context:
space:
mode:
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;