maybe_templ.h 358 B

123456789101112
  1. #include <isl/ctx.h>
  2. #include <isl/maybe.h>
  3. /* A structure that possibly contains a pointer to an object of type ISL_TYPE.
  4. * The pointer in "value" is only valid if "valid" is isl_bool_true.
  5. * Otherwise, "value" is set to NULL.
  6. */
  7. struct ISL_MAYBE(ISL_TYPE) {
  8. isl_bool valid;
  9. ISL_TYPE *value;
  10. };
  11. typedef struct ISL_MAYBE(ISL_TYPE) ISL_MAYBE(ISL_TYPE);