MCPcopy Create free account
hub / github.com/ThePhD/sol2 / no_panic

Function no_panic

include/sol/error_handler.hpp:161–163  ·  view source on GitHub ↗

Specify this function as the handler for lua::check if you know there's nothing wrong

Source from the content-addressed store, hash-verified

159
160 // Specify this function as the handler for lua::check if you know there's nothing wrong
161 inline int no_panic(lua_State*, int, type, type, const char* = nullptr) noexcept {
162 return 0;
163 }
164
165 inline void type_error(lua_State* L, int expected, int actual) noexcept(false) {
166 luaL_error(L, "expected %s, received %s", lua_typename(L, expected), lua_typename(L, actual));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected