7#ifdef JPH_ENABLE_ASSERTS
15 enum class EAccess :
uint8
26 inline Grant(EAccess inVelocity, EAccess inPosition)
28 JPH_ASSERT(sVelocityAccess == EAccess::ReadWrite);
29 JPH_ASSERT(sPositionAccess == EAccess::ReadWrite);
31 sVelocityAccess = inVelocity;
32 sPositionAccess = inPosition;
37 sVelocityAccess = EAccess::ReadWrite;
38 sPositionAccess = EAccess::ReadWrite;
43 static bool sCheckRights(EAccess inRights, EAccess inDesiredRights)
45 return (
uint8(inRights) &
uint8(inDesiredRights)) ==
uint8(inDesiredRights);
49 static thread_local EAccess sVelocityAccess;
50 static thread_local EAccess sPositionAccess;
#define JPH_NAMESPACE_END
Definition Core.h:240
uint8_t uint8
Definition Core.h:310
#define JPH_NAMESPACE_BEGIN
Definition Core.h:234
#define JPH_ASSERT(...)
Definition IssueReporting.h:33