diff options
| author | Thomas Schmucker <ts@its1.de> | 2022-01-04 11:08:42 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2022-01-04 11:08:42 +0100 |
| commit | 2a32335f1ff91e96fd6a09819317f77d6b8bf285 (patch) | |
| tree | fc8b1623065a936fb5f3594b58cb843644204c69 /util.h | |
| parent | 20e4846be684195401078aad209aa999c4171df4 (diff) | |
| parent | 5b266bab1c35617a34989bd801e16854ad789f86 (diff) | |
| download | data-structures-2a32335f1ff91e96fd6a09819317f77d6b8bf285.tar.gz data-structures-2a32335f1ff91e96fd6a09819317f77d6b8bf285.tar.bz2 data-structures-2a32335f1ff91e96fd6a09819317f77d6b8bf285.zip | |
Merge branch 'feat/rework-util.h'
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 6 |
1 files changed, 1 insertions, 5 deletions
| @@ -4,7 +4,6 @@ | |||
| 4 | #include <stdio.h> | 4 | #include <stdio.h> |
| 5 | #include <stdlib.h> | 5 | #include <stdlib.h> |
| 6 | 6 | ||
| 7 | #ifndef NDEBUG | ||
| 8 | static void | 7 | static void |
| 9 | error(const char *msg, ...) | 8 | error(const char *msg, ...) |
| 10 | { | 9 | { |
| @@ -18,10 +17,7 @@ error(const char *msg, ...) | |||
| 18 | exit(EXIT_FAILURE); | 17 | exit(EXIT_FAILURE); |
| 19 | } | 18 | } |
| 20 | 19 | ||
| 21 | # define ERROR(msg) error(msg " in \"%s()\" (%s:%d)", __func__, __FILE__, __LINE__) | 20 | #define ERROR(msg) error(msg " in \"%s()\" (%s:%d)", __func__, __FILE__, __LINE__) |
| 22 | #else | ||
| 23 | # define ERROR(msg) /**/ | ||
| 24 | #endif | ||
| 25 | 21 | ||
| 26 | #ifndef NELEM | 22 | #ifndef NELEM |
| 27 | # define NELEM(x) (sizeof(x) / sizeof(x[0])) /* NOLINT */ | 23 | # define NELEM(x) (sizeof(x) / sizeof(x[0])) /* NOLINT */ |
