aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbg.h
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2014-11-11 14:45:56 +0100
committerTharre <tharre3@gmail.com>2014-11-11 22:06:54 +0100
commit19cba89127381d9dc06d1e823b123231496e9a3d (patch)
tree41512611f8fba3cde9cdb2f098156b4074ea9d17 /src/dbg.h
parent56f3fa373a76842275b199c9ce14fd8e626bd909 (diff)
downloadredo-19cba89127381d9dc06d1e823b123231496e9a3d.tar.gz
redo-19cba89127381d9dc06d1e823b123231496e9a3d.tar.xz
redo-19cba89127381d9dc06d1e823b123231496e9a3d.zip
Fix indentation
Diffstat (limited to 'src/dbg.h')
-rw-r--r--src/dbg.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/dbg.h b/src/dbg.h
index afbb21f..28a6fae 100644
--- a/src/dbg.h
+++ b/src/dbg.h
@@ -24,7 +24,7 @@
#define LOG_HELPER(f,l,...) fprintf(stderr, "("f":"STRINGIFY(l)"): "__VA_ARGS__)
#define FATAL_HELPER(M, ...) log_err(M ": %s\n", __VA_ARGS__)
#define FATAL_HELPER_(f,l,M,...) \
- fprintf(stderr, "(%s:%u): " M ": %s\n", f, l, __VA_ARGS__)
+ fprintf(stderr, "(%s:%u): " M ": %s\n", f, l, __VA_ARGS__)
#ifdef NDEBUG
#define debug(...)
@@ -34,22 +34,22 @@
#define log_err(...) LOG_HELPER(_FILENAME, __LINE__, __VA_ARGS__)
#define fatal(...) \
- ({FATAL_HELPER(__VA_ARGS__, strerror(errno)); exit(EXIT_FAILURE);})
+ ({FATAL_HELPER(__VA_ARGS__, strerror(errno)); exit(EXIT_FAILURE);})
#define fatal_(f,l,...) \
- ({FATAL_HELPER_(f, l, __VA_ARGS__, strerror(errno)); exit(EXIT_FAILURE);})
+ ({FATAL_HELPER_(f, l, __VA_ARGS__, strerror(errno)); exit(EXIT_FAILURE);})
#define assert_str_equal(a,b) ({ \
- if (strcmp(a, b)) { \
- log_err("Assertion error: '%s' == '%s'\n", a, b); \
- abort(); \
- } \
+ if (strcmp(a, b)) { \
+ log_err("Assertion error: '%s' == '%s'\n", a, b); \
+ abort(); \
+ } \
})
#define assert_int_equal(a,b) ({ \
- if (a != b) { \
- log_err("Assertion error: '%d' == '%d'\n", a, b); \
- abort(); \
- } \
+ if (a != b) { \
+ log_err("Assertion error: '%d' == '%d'\n", a, b); \
+ abort(); \
+ } \
})
/* A neat macro that silences unused parameter warnings compiler independant */