Polly 20.0.0git
print_yaml_field_templ.c
Go to the documentation of this file.
1#define xCAT(A,B) A ## B
2#define CAT(A,B) xCAT(A,B)
3#undef TYPE
4#define TYPE CAT(isl_,BASE)
5#define xFN(TYPE,NAME) TYPE ## _ ## NAME
6#define FN(TYPE,NAME) xFN(TYPE,NAME)
7
8/* Print a key-value pair of a YAML mapping to "p",
9 * with key "name" and value "val".
10 */
11static __isl_give isl_printer *FN(print_yaml_field,BASE)(
13{
16 p = isl_printer_print_str(p, "\"");
17 p = FN(isl_printer_print,BASE)(p, val);
18 p = isl_printer_print_str(p, "\"");
20
21 return p;
22}
#define __isl_take
Definition: ctx.h:22
#define __isl_give
Definition: ctx.h:19
#define __isl_keep
Definition: ctx.h:25
#define BASE
Definition: flow_cmp.c:49
__isl_export __isl_give ISL_HMAP __isl_take ISL_KEY __isl_take ISL_VAL * val
Definition: hmap.h:32
const char * p
Definition: isl_test.c:8643
const char * name
Definition: isl_test.c:10938
#define TYPE
#define FN(TYPE, NAME)
__isl_give isl_printer * isl_printer_yaml_next(__isl_take isl_printer *p)
Definition: isl_printer.c:831
__isl_give isl_printer * isl_printer_print_str(__isl_take isl_printer *p, const char *s)
Definition: isl_printer.c:617