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

Function type_error

extlibs/sol3/include/sol/sol.hpp:8179–8181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

luaL_errorFunction · 0.85
lua_typenameFunction · 0.85

Tested by

no test coverage detected