Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
luau_sandbox.cpp File Reference
#include "script/luau_sandbox.h"
#include <algorithm>
#include <cstdlib>
#include <format>
#include <string>
#include <utility>
#include "core/log.h"
#include "lua.h"
#include "luacode.h"
#include "lualib.h"
Include dependency graph for luau_sandbox.cpp:

Go to the source code of this file.

Classes

struct  bicameral::script::anonymous_namespace{luau_sandbox.cpp}::LibraryEntry

Namespaces

namespace  bicameral
namespace  bicameral::script
namespace  bicameral::script::anonymous_namespace{luau_sandbox.cpp}

Typedefs

using bicameral::script::anonymous_namespace{luau_sandbox.cpp}::Bytecode = std::unique_ptr<char, decltype(&std::free)>

Functions

int bicameral::script::anonymous_namespace{luau_sandbox.cpp}::OpenOneLibrary (lua_State *state)
std::string bicameral::script::anonymous_namespace{luau_sandbox.cpp}::ValueToText (lua_State *state, int index)
std::expected< ScriptValue, std::string > bicameral::script::anonymous_namespace{luau_sandbox.cpp}::ReadValue (lua_State *state, int index, std::vector< const void * > &path)
std::expected< ScriptValue, std::string > bicameral::script::anonymous_namespace{luau_sandbox.cpp}::ReadKey (lua_State *state, int index)
std::expected< ScriptValue, std::string > bicameral::script::anonymous_namespace{luau_sandbox.cpp}::ReadTable (lua_State *state, int index, std::vector< const void * > &path)
Bytecode bicameral::script::anonymous_namespace{luau_sandbox.cpp}::Compile (std::string_view source, size_t &bytecodeSize)
ScriptErrorKind bicameral::script::anonymous_namespace{luau_sandbox.cpp}::ClassifyError (int status, bool safepointExceeded, bool memoryExceeded)

Variables

constexpr LibraryEntry bicameral::script::anonymous_namespace{luau_sandbox.cpp}::ALLOWED_LIBRARIES []
constexpr const char * bicameral::script::anonymous_namespace{luau_sandbox.cpp}::HIDDEN_GLOBALS [] = {"gcinfo", "getfenv", "setfenv", "newproxy"}
constexpr size_t bicameral::script::anonymous_namespace{luau_sandbox.cpp}::MAX_VALUE_DEPTH = 64