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

Method require_file

extlibs/sol3/include/sol/sol.hpp:24461–24466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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]() {
24463 stack::script_file(L, filename, mode);
24464 };
24465 return require_core(key, action, create_global);
24466 }
24467
24468 void clear_package_loaders() {
24469 optional<table> maybe_package = this->global["package"];

Callers

nothing calls this directly

Calls 1

script_fileFunction · 0.85

Tested by

no test coverage detected