MCPcopy Create free account
hub / github.com/crownengine/crown / check_temporary

Method check_temporary

src/lua/lua_stack.cpp:51–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50#if CROWN_DEBUG
51Vector3 *LuaStack::check_temporary(int i, const Vector3 *ptr)
52{
53 LuaEnvironment *env = device()->_lua_environment;
54
55 Vector3 *v = env->check_valid(ptr);
56 if (CE_UNLIKELY(!env->is_vector3(v))) {
57 luaL_typerror(L, i, "Vector3");
58 CE_UNREACHABLE();
59 }
60
61 return v;
62}
63
64Quaternion *LuaStack::check_temporary(int i, const Quaternion *ptr)
65{

Callers

nothing calls this directly

Calls 6

deviceFunction · 0.85
check_validMethod · 0.80
luaL_typerrorFunction · 0.50
is_vector3Method · 0.45
is_quaternionMethod · 0.45
is_matrix4x4Method · 0.45

Tested by

no test coverage detected