summaryrefslogtreecommitdiff
path: root/utils/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/log.h')
-rw-r--r--utils/log.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/utils/log.h b/utils/log.h
index 84a211d95..b49f439db 100644
--- a/utils/log.h
+++ b/utils/log.h
@@ -24,11 +24,6 @@
#include "desktop/netsurf.h"
#include "utils/errors.h"
-#ifdef NDEBUG
-# define LOG(x) ((void) 0)
-#else
-
-
/**
* Ensures the FILE handle is available to write logging to.
*
@@ -45,6 +40,10 @@ typedef bool(nslog_ensure_t)(FILE *fptr);
*/
extern nserror nslog_init(nslog_ensure_t *ensure, int *pargc, char **argv);
+#ifdef NDEBUG
+# define LOG(x) ((void) 0)
+#else
+
/**
* Obtain a formatted string suitable for prepending to a log message
*