Polly 20.0.0git
print_templ.c
Go to the documentation of this file.
2
3#define xCAT(A,B) A ## B
4#define CAT(A,B) xCAT(A,B)
5#undef TYPE
6#define TYPE CAT(isl_,BASE)
7#define xFN(TYPE,NAME) TYPE ## _ ## NAME
8#define FN(TYPE,NAME) xFN(TYPE,NAME)
9
10#ifndef PRINT_DUMP_DEFAULT
11#define PRINT_DUMP_DEFAULT 1
12#endif
13
15{
17
18 if (!obj)
19 return;
20 p = isl_printer_to_file(FN(TYPE,get_ctx)(obj), stderr);
22 p = FN(isl_printer_print,BASE)(p, obj);
25}
26
27#undef PRINT_DUMP_DEFAULT
28
30{
32 char *s;
33
34 if (!obj)
35 return NULL;
36 p = isl_printer_to_str(FN(TYPE,get_ctx)(obj));
37 p = FN(isl_printer_print,BASE)(p, obj);
40
41 return s;
42}
#define __isl_give
Definition: ctx.h:19
#define __isl_keep
Definition: ctx.h:25
#define BASE
Definition: flow_cmp.c:49
__isl_give isl_printer * isl_printer_set_dump(__isl_take isl_printer *p, int dump)
Definition: isl_printer.c:451
const char * p
Definition: isl_test.c:8643
const char * obj
Definition: isl_test.c:3316
#define TYPE
Definition: print_templ.c:6
#define FN(TYPE, NAME)
Definition: print_templ.c:8
#define PRINT_DUMP_DEFAULT
Definition: print_templ.c:11
__isl_null isl_printer * isl_printer_free(__isl_take isl_printer *printer)
Definition: isl_printer.c:269
__isl_give char * isl_printer_get_str(__isl_keep isl_printer *printer)
Definition: isl_printer.c:677
__isl_give isl_printer * isl_printer_to_file(isl_ctx *ctx, FILE *file)
Definition: isl_printer.c:217
__isl_give isl_printer * isl_printer_to_str(isl_ctx *ctx)
Definition: isl_printer.c:240
__isl_give isl_printer * isl_printer_end_line(__isl_take isl_printer *p)
Definition: isl_printer.c:667