MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / type_assert

Function type_assert

extlibs/sol3/include/sol/sol.hpp:8187–8191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 2

basic_userdataMethod · 0.85
basic_lightuserdataMethod · 0.85

Calls 2

type_panic_c_strFunction · 0.85
type_ofFunction · 0.85

Tested by

no test coverage detected