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

Method require_script

Libs/sol/sol.hpp:25244–25248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25242 }
25243
25244 object require_script(const std::string& key, const string_view& code, bool create_global = true,
25245 const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) {
25246 auto action = [this, &code, &chunkname, &mode]() { stack::script(L, code, chunkname, mode); };
25247 return require_core(key, action, create_global);
25248 }
25249
25250 object require_file(const std::string& key, const std::string& filename, bool create_global = true, load_mode mode = load_mode::any) {
25251 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