| 49 | |
| 50 | #if CROWN_DEBUG |
| 51 | Vector3 *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 | |
| 64 | Quaternion *LuaStack::check_temporary(int i, const Quaternion *ptr) |
| 65 | { |
nothing calls this directly
no test coverage detected