diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-09-06 15:11:15 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-09-06 15:11:15 -0400 |
commit | 782a898efadadf2747cc3310749f34a8dde8dd60 (patch) | |
tree | 215a6bed55d34ac26f9a15f7a94d7bc54745e7b4 /indra/llcommon/lua_function.h | |
parent | 13ec4bccb534ef55a773004bd3c5a5ac9027600b (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.h | 5 |
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 }; }; |