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

Method require

Libs/sol/sol.hpp:25239–25242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25237 }
25238
25239 object require(const std::string& key, lua_CFunction open_function, bool create_global = true) {
25240 luaL_requiref(L, key.c_str(), open_function, create_global ? 1 : 0);
25241 return stack::pop<object>(L);
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) {

Callers

nothing calls this directly

Calls 2

luaL_requirefFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected