|
Bicameral Engine
GPU-resident engine for a magic-research open-world game
|
Classes | |
| struct | LibraryEntry |
Typedefs | |
| using | Bytecode = std::unique_ptr<char, decltype(&std::free)> |
Functions | |
| int | OpenOneLibrary (lua_State *state) |
| std::string | ValueToText (lua_State *state, int index) |
| std::expected< ScriptValue, std::string > | ReadValue (lua_State *state, int index, std::vector< const void * > &path) |
| std::expected< ScriptValue, std::string > | ReadKey (lua_State *state, int index) |
| std::expected< ScriptValue, std::string > | ReadTable (lua_State *state, int index, std::vector< const void * > &path) |
| Bytecode | Compile (std::string_view source, size_t &bytecodeSize) |
| ScriptErrorKind | ClassifyError (int status, bool safepointExceeded, bool memoryExceeded) |
Variables | |
| constexpr LibraryEntry | ALLOWED_LIBRARIES [] |
| constexpr const char * | HIDDEN_GLOBALS [] = {"gcinfo", "getfenv", "setfenv", "newproxy"} |
| constexpr size_t | MAX_VALUE_DEPTH = 64 |
| using bicameral::script::anonymous_namespace{luau_sandbox.cpp}::Bytecode = std::unique_ptr<char, decltype(&std::free)> |
Definition at line 150 of file luau_sandbox.cpp.
| ScriptErrorKind bicameral::script::anonymous_namespace{luau_sandbox.cpp}::ClassifyError | ( | int | status, |
| bool | safepointExceeded, | ||
| bool | memoryExceeded ) |
Definition at line 160 of file luau_sandbox.cpp.
References ClassifyError(), bicameral::script::Memory, bicameral::script::Runtime, and bicameral::script::SafepointLimit.
Referenced by ClassifyError().
| Bytecode bicameral::script::anonymous_namespace{luau_sandbox.cpp}::Compile | ( | std::string_view | source, |
| size_t & | bytecodeSize ) |
Definition at line 152 of file luau_sandbox.cpp.
| int bicameral::script::anonymous_namespace{luau_sandbox.cpp}::OpenOneLibrary | ( | lua_State * | state | ) |
Definition at line 48 of file luau_sandbox.cpp.
References OpenOneLibrary().
Referenced by OpenOneLibrary().
| std::expected< ScriptValue, std::string > bicameral::script::anonymous_namespace{luau_sandbox.cpp}::ReadKey | ( | lua_State * | state, |
| int | index ) |
Definition at line 81 of file luau_sandbox.cpp.
References bicameral::script::ScriptValue::MakeNumber(), bicameral::script::ScriptValue::MakeString(), and ReadKey().
Referenced by ReadKey(), ReadTable(), and ReadValue().
| std::expected< ScriptValue, std::string > bicameral::script::anonymous_namespace{luau_sandbox.cpp}::ReadTable | ( | lua_State * | state, |
| int | index, | ||
| std::vector< const void * > & | path ) |
Definition at line 96 of file luau_sandbox.cpp.
References bicameral::script::ScriptValue::MakeTable(), MAX_VALUE_DEPTH, ReadKey(), ReadTable(), and ReadValue().
Referenced by ReadTable(), and ReadValue().
| std::expected< ScriptValue, std::string > bicameral::script::anonymous_namespace{luau_sandbox.cpp}::ReadValue | ( | lua_State * | state, |
| int | index, | ||
| std::vector< const void * > & | path ) |
Definition at line 130 of file luau_sandbox.cpp.
References bicameral::script::ScriptValue::MakeBoolean(), bicameral::script::ScriptValue::MakeNumber(), ReadKey(), ReadTable(), and ReadValue().
Referenced by ReadTable(), and ReadValue().
| std::string bicameral::script::anonymous_namespace{luau_sandbox.cpp}::ValueToText | ( | lua_State * | state, |
| int | index ) |
Definition at line 58 of file luau_sandbox.cpp.
References ValueToText().
Referenced by ValueToText().
|
constexpr |
Definition at line 33 of file luau_sandbox.cpp.
|
constexpr |
Definition at line 46 of file luau_sandbox.cpp.
|
constexpr |
Definition at line 77 of file luau_sandbox.cpp.
Referenced by ReadTable().