diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-24 17:58:18 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-24 17:58:18 +0200 |
| commit | de7208a60eca11aa8014e3a9b698e092322aea88 (patch) | |
| tree | 13323f839f63d0d363517af81de317f0ec17a415 /src/benchmarks/espresso/ansi.h | |
| parent | 77ac9ce0a5c55d4f79f8fb8f7daa59ddb53cb507 (diff) | |
| download | allocbench-de7208a60eca11aa8014e3a9b698e092322aea88.tar.gz allocbench-de7208a60eca11aa8014e3a9b698e092322aea88.zip | |
add espresso benchmark
Diffstat (limited to 'src/benchmarks/espresso/ansi.h')
| -rw-r--r-- | src/benchmarks/espresso/ansi.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/benchmarks/espresso/ansi.h b/src/benchmarks/espresso/ansi.h new file mode 100644 index 0000000..81e482f --- /dev/null +++ b/src/benchmarks/espresso/ansi.h @@ -0,0 +1,44 @@ +#ifndef ANSI_H +#define ANSI_H + +/* + * ANSI Compiler Support + * + * David Harrison + * University of California, Berkeley + * 1988 + * + * ANSI compatible compilers are supposed to define the preprocessor + * directive __STDC__. Based on this directive, this file defines + * certain ANSI specific macros. + * + * ARGS: + * Used in function prototypes. Example: + * extern int foo + * ARGS((char *blah, double threshold)); + */ + +/* Function prototypes */ +#if defined(__STDC__) || defined(__cplusplus) +#define ARGS(args) args +#else +#define ARGS(args) () +#endif + +#if defined(__cplusplus) +#define NULLARGS (void) +#else +#define NULLARGS () +#endif + +#ifdef __cplusplus +#define EXTERN extern "C" +#else +#define EXTERN extern +#endif + +#if defined(__cplusplus) || defined(__STDC__) +#define HAS_STDARG +#endif + +#endif |
