| 8185 | } |
| 8186 | |
| 8187 | inline void type_assert(lua_State* L, int index, type expected, type actual) noexcept(false) { |
| 8188 | if (expected != type::poly && expected != actual) { |
| 8189 | type_panic_c_str(L, index, expected, actual, nullptr); |
| 8190 | } |
| 8191 | } |
| 8192 | |
| 8193 | inline void type_assert(lua_State* L, int index, type expected) { |
| 8194 | type actual = type_of(L, index); |
no test coverage detected