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

Function script_file

extlibs/sol3/include/sol/sol.hpp:14567–14571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14565 }
14566
14567 inline void script_file(lua_State* L, const std::string& filename, load_mode mode = load_mode::any) {
14568 if (luaL_loadfilex(L, filename.c_str(), to_string(mode).c_str()) || lua_pcall(L, 0, LUA_MULTRET, 0)) {
14569 lua_error(L);
14570 }
14571 }
14572
14573 inline void luajit_exception_handler(lua_State* L, int (*handler)(lua_State*, lua_CFunction) = detail::c_trampoline) {
14574#if defined(SOL_LUAJIT) && (!defined(SOL_EXCEPTIONS_SAFE_PROPAGATION) || !(SOL_EXCEPTIONS_SAFE_PROPAGATION))

Callers 2

require_fileMethod · 0.85
unsafe_script_fileMethod · 0.85

Calls 4

lua_errorFunction · 0.85
luaL_loadfilexFunction · 0.70
to_stringFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected