MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / require_script

Method require_script

extlibs/sol3/include/sol/sol.hpp:24454–24459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24452 }
24453
24454 object require_script(const std::string& key, const string_view& code, bool create_global = true, const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) {
24455 auto action = [this, &code, &chunkname, &mode]() {
24456 stack::script(L, code, chunkname, mode);
24457 };
24458 return require_core(key, action, create_global);
24459 }
24460
24461 object require_file(const std::string& key, const std::string& filename, bool create_global = true, load_mode mode = load_mode::any) {
24462 auto action = [this, &filename, &mode]() {

Callers

nothing calls this directly

Calls 1

scriptFunction · 0.85

Tested by

no test coverage detected