summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/assert.h2
-rw-r--r--lib/macros.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/assert.h b/lib/assert.h
index 19da04c1..79e23680 100644
--- a/lib/assert.h
+++ b/lib/assert.h
@@ -32,7 +32,7 @@
MACRO_BEGIN \
if (unlikely(!(expression))) \
panic("assertion (%s) failed in %s:%d, function %s()", \
- XQUOTE(expression), __FILE__, __LINE__, __func__); \
+ __QUOTE(expression), __FILE__, __LINE__, __func__); \
MACRO_END
#endif /* NDEBUG */
diff --git a/lib/macros.h b/lib/macros.h
index 4894a335..aec24e1b 100644
--- a/lib/macros.h
+++ b/lib/macros.h
@@ -28,8 +28,8 @@
#define MACRO_BEGIN ({
#define MACRO_END })
-#define XQUOTE(x) #x
-#define QUOTE(x) XQUOTE(x)
+#define __QUOTE(x) #x
+#define QUOTE(x) __QUOTE(x)
#ifdef __ASSEMBLY__
#define DECL_CONST(x, s) x