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

Method load_file

extlibs/sol3/include/sol/sol.hpp:24803–24806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24801 }
24802
24803 load_result load_file(const std::string& filename, load_mode mode = load_mode::any) {
24804 load_status x = static_cast<load_status>(luaL_loadfilex(L, filename.c_str(), to_string(mode).c_str()));
24805 return load_result(L, absolute_index(L, -1), 1, 1, x);
24806 }
24807
24808 load_result load(lua_Reader reader, void* data, const std::string& chunkname = detail::default_chunk_name(), load_mode mode = load_mode::any) {
24809 detail::typical_chunk_name_t basechunkname = {};

Callers

nothing calls this directly

Calls 5

load_resultClass · 0.85
absolute_indexClass · 0.85
luaL_loadfilexFunction · 0.70
to_stringFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected