| 8177 | } |
| 8178 | |
| 8179 | inline void type_error(lua_State* L, int expected, int actual) noexcept(false) { |
| 8180 | luaL_error(L, "expected %s, received %s", lua_typename(L, expected), lua_typename(L, actual)); |
| 8181 | } |
| 8182 | |
| 8183 | inline void type_error(lua_State* L, type expected, type actual) noexcept(false) { |
| 8184 | type_error(L, static_cast<int>(expected), static_cast<int>(actual)); |
nothing calls this directly
no test coverage detected