CARB_INCLUDES_MEMBER#

Defined in carb/Defines.h

CARB_INCLUDES_MEMBER(sizeOfStruct, member)#

Returns whether it is safe to access a member of a versioned struct.

Parameters:
  • sizeOfStruct[in] The size of the versioned struct in bytes. This is usually provided as the first member of the struct. Note that this should not be passed as sizeof(<struct_name>) since that would be hard coded at build time instead of considering the actual versioned struct’s runtime size.

  • member[in] The member to test is safe to access in the struct. This should be given as the fully qualified name of the requested member.

Returns:

true if the requested member is safe to access. Returns false otherwise.