diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2021-01-27 22:06:49 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2021-01-27 22:06:49 +0100 |
| commit | 06950aab233de6a2f47293d59575bb42f6131660 (patch) | |
| tree | 62f6eed4a6d35414f656d22b9ac7420849018a11 /src/compiler.h | |
| parent | 1ef9c463f1efc1adfb62e42ab3dd17e8c6394373 (diff) | |
Complete rewrite using C++ and with shared state support
Diffstat (limited to 'src/compiler.h')
| -rw-r--r-- | src/compiler.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/compiler.h b/src/compiler.h deleted file mode 100644 index 6a5ce4a..0000000 --- a/src/compiler.h +++ /dev/null @@ -1,42 +0,0 @@ -/** - * \file compiler.h - * Part of common.h, defines macros for hints to the compiler. - */ - -#ifndef COMPILER_H -#define COMPILER_H - -#if HAVE___ATTRIBUTE__ -# define MALLOC __attribute__((malloc)) -# define NONULL __attribute__((nonnull)) -# define NONULL_ARGS(...) __attribute__((nonnull (__VA_ARGS__))) -# define PRINTF(_n,_m) __attribute__((format (printf, (_n), (_m)))) -# define UNUSED __attribute__((unused)) -#else -# warning Less compile time checks as compiler is unsupported -/** - * Mark a function as always returning a new unique pointer or NULL - */ -# define MALLOC -/** - * Mark a function as not taking NULL to any of its pointer parameters - */ -# define NONULL -/** - * Mark a function as not taking NULL to the given list of pointer parameters. - * The list of parameters is 1 based. - */ -# define NONULL_ARGS(...) -/** - * Mark a function as taking printf format style parameter. - * @param _n the 1 based index of the format parameter - * @param _m the 1 based index of the first variable list parameter - */ -# define PRINTF(_n,_m) -/** - * Mark a function paramter as being unused - */ -# define UNUSED -#endif - -#endif /* COMPILER_H */ |
