MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / script_file

Function script_file

Dependencies/sol/include/sol/stack.hpp:330–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328 }
329
330 inline void script_file(lua_State* L, const std::string& filename, load_mode mode = load_mode::any) {
331 if (luaL_loadfilex(L, filename.c_str(), to_string(mode).c_str()) || lua_pcall(L, 0, LUA_MULTRET, 0)) {
332 lua_error(L);
333 }
334 }
335
336 inline void luajit_exception_handler(lua_State* L, int (*handler)(lua_State*, lua_CFunction) = detail::c_trampoline) {
337#if SOL_IS_ON(SOL_USE_LUAJIT_EXCEPTION_TRAMPOLINE)

Callers 2

require_fileMethod · 0.85
unsafe_script_fileMethod · 0.85

Calls 4

to_stringFunction · 0.85
lua_errorFunction · 0.85
c_strMethod · 0.80
luaL_loadfilexFunction · 0.50

Tested by

no test coverage detected