MobilityDB 1.3
Loading...
Searching...
No Matches

◆ VALIDATE_TNUMBER

#define VALIDATE_TNUMBER (   temp,
  ret 
)
Value:
do { \
if (! ensure_not_null((void *) (temp)) || \
! ensure_tnumber_type(((Temporal *) (temp))->temptype) ) \
return (ret); \
} while (0)
bool ensure_tnumber_type(meosType type)
Ensure that a type is a temporal number.
Definition: meos_catalog.c:1241
bool ensure_not_null(void *ptr)
Ensure that the pointer is not null.
Definition: temporal.c:136
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: meos.h:173

Macro for ensuring that the temporal value is a temporal number.

Note
The macro works for the Temporal type and its subtypes TInstant, TSequence, and TSequenceSet