Polly 20.0.0git
check_single_reference_templ.c
Go to the documentation of this file.
1#define xFN(TYPE,NAME) TYPE ## _ ## NAME
2#define FN(TYPE,NAME) xFN(TYPE,NAME)
3
4/* Check that "obj" has a single reference.
5 * That is, check that "obj" can be changed inplace.
6 */
7isl_stat FN(TYPE,check_single_reference)(__isl_keep TYPE *obj)
8{
9 isl_bool single;
10
11 single = FN(TYPE,has_single_reference)(obj);
12 if (single < 0)
13 return isl_stat_error;
14 if (!single)
16 "object should have a single reference",
17 return isl_stat_error);
18 return isl_stat_ok;
19}
#define TYPE
#define FN(TYPE, NAME)
isl_stat
Definition: ctx.h:84
@ isl_stat_error
Definition: ctx.h:85
@ isl_stat_ok
Definition: ctx.h:86
#define isl_die(ctx, errno, msg, code)
Definition: ctx.h:137
@ isl_error_invalid
Definition: ctx.h:80
#define __isl_keep
Definition: ctx.h:25
isl_bool
Definition: ctx.h:89
const char * obj
Definition: isl_test.c:3316