add exported isl_union_map_domain_reverse
[isl.git] / has_single_reference_templ.c
blob332f6b22e2458e253197f1038afb9e81c896c36b
1 #define xFN(TYPE,NAME) TYPE ## _ ## NAME
2 #define FN(TYPE,NAME) xFN(TYPE,NAME)
4 /* Does "obj" have a single reference?
5 * That is, can "obj" be changed inplace?
6 */
7 isl_bool FN(TYPE,has_single_reference)(__isl_keep TYPE *obj)
9 if (!obj)
10 return isl_bool_error;
11 return obj->ref == 1;