agssim: add interpreter and file-based mode
[rofl0r-agsutils.git] / preproc.h
blob86152ced0dfaea4b75611b496729221880484f47
1 #ifndef PREPROC_H
2 #define PREPROC_H
4 #include <stdio.h>
6 struct cpp;
8 struct cpp *cpp_new(void);
9 void cpp_free(struct cpp*);
10 void cpp_add_includedir(struct cpp *cpp, const char* includedir);
11 int cpp_add_define(struct cpp *cpp, const char *mdecl);
12 int cpp_run(struct cpp *cpp, FILE* in, FILE* out, const char* inname);
14 #ifdef __GNUC__
15 #pragma GCC diagnostic ignored "-Wunknown-pragmas"
16 #endif
17 #pragma RcB2 DEP "preproc.c"
19 #endif