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

Method require

extlibs/sol3/include/sol/sol.hpp:24449–24452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24447 }
24448
24449 object require(const std::string& key, lua_CFunction open_function, bool create_global = true) {
24450 luaL_requiref(L, key.c_str(), open_function, create_global ? 1 : 0);
24451 return stack::pop<object>(L);
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]() {

Callers

nothing calls this directly

Calls 2

luaL_requirefFunction · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected