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

Method require_script

3rd_party/lua_sol2/include/sol.hpp:21101–21106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21099 }
21100
21101 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) {
21102 auto action = [this, &code, &chunkname, &mode]() {
21103 stack::script(L, code, chunkname, mode);
21104 };
21105 return require_core(key, action, create_global);
21106 }
21107
21108 object require_file(const std::string& key, const std::string& filename, bool create_global = true, load_mode mode = load_mode::any) {
21109 auto action = [this, &filename, &mode]() {

Callers

nothing calls this directly

Calls 1

scriptFunction · 0.85

Tested by

no test coverage detected