summaryrefslogtreecommitdiff
path: root/indra/llcommon/lua_function.h
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-04-18 16:34:32 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-04-18 16:34:32 -0400
commitfa821576c010eca2cacb0fab25dd240de4062b31 (patch)
treea3f13f5e989531c73cf38c8b0e84cdb92ed87e57 /indra/llcommon/lua_function.h
parentc05bf5acd487e78e414e3d679f6ec5dbfaa4169d (diff)
Move {set,check}_interrupts_counter() to lluau namespace.
Use in LuaState::expr() so we can catch a runaway in-memory Lua chunk as well as a script read from a file.
Diffstat (limited to 'indra/llcommon/lua_function.h')
-rw-r--r--indra/llcommon/lua_function.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llcommon/lua_function.h b/indra/llcommon/lua_function.h
index ec1e6cdb10..e7013f92c6 100644
--- a/indra/llcommon/lua_function.h
+++ b/indra/llcommon/lua_function.h
@@ -52,6 +52,9 @@ namespace lluau
int loadstring(lua_State* L, const std::string& desc, const std::string& text);
fsyspath source_path(lua_State* L);
+
+ void set_interrupts_counter(lua_State *L, S32 counter);
+ void check_interrupts_counter(lua_State* L);
} // namespace lluau
std::string lua_tostdstring(lua_State* L, int index);