Specify this function as the handler for lua::check if you know there's nothing wrong
| 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)); |
nothing calls this directly
no outgoing calls
no test coverage detected