diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-02-28 21:50:44 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-02-28 21:50:44 +0100 |
| commit | c029d90d1975e124d237605f1edb2be16bd05b5d (patch) | |
| tree | 9df87ffb365354bdb74a969440b32c8304bdbcb7 /src/common.hh | |
Initial commit
Diffstat (limited to 'src/common.hh')
| -rw-r--r-- | src/common.hh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/common.hh b/src/common.hh new file mode 100644 index 0000000..67c8fa5 --- /dev/null +++ b/src/common.hh @@ -0,0 +1,18 @@ +// -*- mode: c++; c-basic-offset: 2; -*- + +#ifndef COMMON_HH +#define COMMON_HH + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#if HAVE_VAR_ATTRIBUTE_UNUSED +# define UNUSED(x) __attribute__((unused)) x ## _unused +#else +# define UNUSED(x) x ## _unused +#endif + +#include <cassert> + +#endif // COMMON_HH |
