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;
@ None
No degrees of freedom are allowed. Note that this is not valid and will crash. Use a static body inst...
std::uint8_t uint8
Definition: Core.h:453
#define JPH_NAMESPACE_END
Definition: Core.h:378
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:372
#define JPH_ASSERT(...)
Definition: IssueReporting.h:33