diff options
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 */ |
