Amazon Kinesis Webrtc C SDK
NullableMacroUtilities

Nullable Macros. More...

Macros

#define NULLABLE_SET_EMPTY(a)
 
#define NULLABLE_CHECK_EMPTY(a)   ((a).isNull == TRUE)
 Used to check if the value is NULL. If yes, the value field should not be populated. More...
 
#define NULLABLE_SET_VALUE(a, val)
 Used to set a value. The macro sets the isNull flag to FALSE and sets the passed in value. More...
 

Detailed Description

Nullable Macros.

Use this to set the value to NULL. If value field is set after calling this, it is ignored

Macro Definition Documentation

◆ NULLABLE_CHECK_EMPTY

#define NULLABLE_CHECK_EMPTY (   a)    ((a).isNull == TRUE)

Used to check if the value is NULL. If yes, the value field should not be populated.

◆ NULLABLE_SET_EMPTY

#define NULLABLE_SET_EMPTY (   a)
Value:
do { \
(a).isNull = TRUE; \
} while (FALSE)

◆ NULLABLE_SET_VALUE

#define NULLABLE_SET_VALUE (   a,
  val 
)
Value:
do { \
(a).isNull = FALSE; \
(a).value = val; \
} while (FALSE)

Used to set a value. The macro sets the isNull flag to FALSE and sets the passed in value.