Toast Engine
Loading...
Searching...
No Matches
scripting::ScriptDepthGuard Class Reference

Counts nested script entries on the current thread. More...

#include <lua_util.hpp>

Public Member Functions

 ScriptDepthGuard (const ScriptDepthGuard &)=delete
auto operator= (const ScriptDepthGuard &) -> ScriptDepthGuard &=delete
 ScriptDepthGuard (ScriptDepthGuard &&)=delete
auto operator= (ScriptDepthGuard &&) -> ScriptDepthGuard &=delete
auto allowed () const noexcept -> bool
 False when the limit was reached; the caller must not enter Lua.

Detailed Description

Counts nested script entries on the current thread.

Signals, calls and events can bounce between nodes, and every hop is a Lua call nested inside C++ frames


The documentation for this class was generated from the following files:
  • engine/src/toast/scripting/lua_util.hpp
  • engine/src/toast/scripting/lua_util.cpp