Polly 19.0.0git
check_type_range_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 there are "n" dimensions of type "type" starting at "first"
5 * in "obj".
6 */
8 enum isl_dim_type type, unsigned first, unsigned n)
9{
10 isl_size dim;
11
12 dim = FN(TYPE,dim)(obj, type);
13 if (dim < 0)
14 return isl_stat_error;
15 if (first + n > dim || first + n < first)
17 "position or range out of bounds",
18 return isl_stat_error);
19 return isl_stat_ok;
20}
#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
int isl_size
Definition: ctx.h:96
enum isl_fold type
Definition: isl_test.c:4017
const char * obj
Definition: isl_test.c:3316
isl_dim_type
Definition: space_type.h:13
n
Definition: youcefn.c:8