summaryrefslogtreecommitdiff
path: root/indra/llcommon/lua_function.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-09-06 15:11:15 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-09-06 15:11:15 -0400
commit782a898efadadf2747cc3310749f34a8dde8dd60 (patch)
tree215a6bed55d34ac26f9a15f7a94d7bc54745e7b4 /indra/llcommon/lua_function.h
parent13ec4bccb534ef55a773004bd3c5a5ac9027600b (diff)
Introduce LuaFeature debug setting, default off.
Make central Lua engine functionality conditional on that flag.
Diffstat (limited to 'indra/llcommon/lua_function.h')
-rw-r--r--indra/llcommon/lua_function.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llcommon/lua_function.h b/indra/llcommon/lua_function.h
index e28656c03b..967d8eaba1 100644
--- a/indra/llcommon/lua_function.h
+++ b/indra/llcommon/lua_function.h
@@ -115,8 +115,11 @@ public:
void check_interrupts_counter();
private:
+ /*---------------------------- feature flag ----------------------------*/
+ bool mFeature{ false };
+ /*---------------------------- feature flag ----------------------------*/
script_finished_fn mCallback;
- lua_State* mState;
+ lua_State* mState{ nullptr };
std::string mError;
S32 mInterrupts{ 0 };
};