108 #ifndef __GNUC_PREREQ__
110 #define __GNUC_PREREQ__(x, y) \
111 ((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || \
114 #define __GNUC_PREREQ__(x, y) 0
119 #if __GNUC_PREREQ__(3, 4)
120 #define __wur __attribute__((warn_unused_result))
127 #if __GNUC_PREREQ__(4, 0)
128 #define __sentinel __attribute__((sentinel))
int jx_match_array(struct jx *j,...) __wur __sentinel
Destructure an array.
int jx_match_boolean(struct jx *j, int *v) __wur
Unwrap a boolean value.
int jx_match_symbol(struct jx *j, char **v) __wur
Unwrap a symbol value.
int jx_match_integer(struct jx *j, jx_int_t *v) __wur
Unwrap an integer value.
int jx_match_string(struct jx *j, char **v) __wur
Unwrap a string value.
JSON Expressions (JX) library.
JX value representing any expression type.
Definition: jx.h:117
int jx_match_double(struct jx *j, double *v) __wur
Unwrap a double value.