MCPcopy Create free account
hub / github.com/axmolengine/axmol / require_script

Method require_script

3rdparty/lua/sol/sol.hpp:27416–27420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27414 }
27415
27416 object require_script(const std::string& key, const string_view& code, bool create_global = true,
27417 const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) {
27418 auto action = [this, &code, &chunkname, &mode]() { stack::script(L, code, chunkname, mode); };
27419 return require_core(key, action, create_global);
27420 }
27421
27422 object require_file(const std::string& key, const std::string& filename, bool create_global = true, load_mode mode = load_mode::any) {
27423 auto action = [this, &filename, &mode]() { stack::script_file(L, filename, mode); };

Callers

nothing calls this directly

Calls 1

scriptFunction · 0.85

Tested by

no test coverage detected