Polly 19.0.0git
isl_read_from_str_templ.c
Go to the documentation of this file.
1/*
2 * Copyright 2008 Katholieke Universiteit Leuven
3 *
4 * Use of this software is governed by the MIT license
5 *
6 * Written by Sven Verdoolaege, K.U.Leuven, Departement
7 * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
8 */
9
10#define xCAT(A,B) A ## B
11#define CAT(A,B) xCAT(A,B)
12#undef TYPE
13#define TYPE CAT(isl_,TYPE_BASE)
14
15/* Read an object of type TYPE from "str" (using an isl_stream).
16 */
17__isl_give TYPE *FN(isl,FN(TYPE_BASE,read_from_str))(isl_ctx *ctx,
18 const char *str)
19{
20 TYPE *obj;
22 if (!s)
23 return NULL;
24 obj = FN(isl_stream_read,TYPE_BASE)(s);
26 return obj;
27}
#define FN(TYPE, NAME)
#define __isl_give
Definition: ctx.h:19
#define TYPE_BASE
Definition: isl_id.c:287
#define TYPE
const char * obj
Definition: isl_test.c:3316
const char * str
Definition: isl_test.c:2095
These are automatically generated checked C++ bindings for isl.
Definition: ISLTools.h:45
void isl_stream_free(__isl_take isl_stream *s)
Definition: isl_stream.c:805
__isl_give isl_stream * isl_stream_new_str(isl_ctx *ctx, const char *str)
Definition: isl_stream.c:228