aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.hpp')
-rw-r--r--src/util.hpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/util.hpp b/src/util.hpp
index bc45dfd..a2f0dbf 100644
--- a/src/util.hpp
+++ b/src/util.hpp
@@ -6,20 +6,21 @@
#include <vector>
#ifdef __GNUC__
-#define ATTR_FORMAT(stringindex, firsttocheck) __attribute__((format(printf, stringindex, firsttocheck)))
+#define ATTR_FORMAT(stringindex, firsttocheck) \
+ __attribute__((format(printf, stringindex, firsttocheck)))
#else
#define ATTR_FORMAT(stringindex, firsttocheck)
#endif
-void lognotice(char const *fmt, ...) ATTR_FORMAT(1,2);
-void logerror(char const *fmt, ...) ATTR_FORMAT(1,2);
-void fatal(char const *fmt, ...) ATTR_FORMAT(1,2);
+void lognotice(char const *fmt, ...) ATTR_FORMAT(1, 2);
+void logerror(char const *fmt, ...) ATTR_FORMAT(1, 2);
+void fatal(char const *fmt, ...) ATTR_FORMAT(1, 2);
#ifdef DEBUG_OUTPUT
-void logdebug(char const *fmt, ...) ATTR_FORMAT(1,2);
+void logdebug(char const *fmt, ...) ATTR_FORMAT(1, 2);
#else
-static inline void logdebug(char const * fmt, ...) ATTR_FORMAT(1,2);
-static inline void logdebug(char const * fmt, ...) {}
+static inline void logdebug(char const *fmt, ...) ATTR_FORMAT(1, 2);
+static inline void logdebug(char const *fmt, ...) {}
#endif
// _ _ _ __ _