| 16669 | } |
| 16670 | |
| 16671 | inline void script_file(lua_State* L, const std::string& filename, load_mode mode = load_mode::any) { |
| 16672 | if (luaL_loadfilex(L, filename.c_str(), to_string(mode).c_str()) || lua_pcall(L, 0, LUA_MULTRET, 0)) { |
| 16673 | lua_error(L); |
| 16674 | } |
| 16675 | } |
| 16676 | |
| 16677 | inline void luajit_exception_handler(lua_State* L, int (*handler)(lua_State*, lua_CFunction) = detail::c_trampoline) { |
| 16678 | #if SOL_IS_ON(SOL_USE_LUAJIT_EXCEPTION_TRAMPOLINE) |
no test coverage detected