From 05e2669fd81d33b2ac76b1369a706df90d046517 Mon Sep 17 00:00:00 2001
From: 3gg <3gg@shellblade.net>
Date: Wed, 28 Aug 2024 09:14:46 -0700
Subject: Fix LOGE macro.

---
 cassert/include/cassert.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/cassert/include/cassert.h b/cassert/include/cassert.h
index acfcb0f..bb98f50 100644
--- a/cassert/include/cassert.h
+++ b/cassert/include/cassert.h
@@ -7,25 +7,25 @@
 #ifndef LOGE
 #include <stdio.h>
 // __VA_OPT__ is not available until C2X.
-#define LOGE(format, ...)                                \
+/*#define LOGE(format, ...)                                \
   {                                                      \
     fprintf(                                             \
         stderr, "[ASSERT] %s:%d " format "\n", __FILE__, \
         __LINE__ __VA_OPT__(, ) __VA_ARGS__);            \
-  }
-/*#define LOGE(...)                                           \
+  }*/
+#define LOGE(...)                                           \
   {                                                         \
     fprintf(stderr, "[ASSERT] %s:%d ", __FILE__, __LINE__); \
     fprintf(stderr, __VA_ARGS__);                           \
     fprintf(stderr, "\n");                                  \
-  }*/
+  }
 #endif // LOGE
 
 #define TRAP() raise(SIGTRAP)
 
 /// Unconditional hard assert.
-#define FAIL(format, ...)    \
-  LOGE(format, __VA_ARGS__); \
+#define FAIL(...)    \
+  LOGE(__VA_ARGS__); \
   TRAP();
 
 //// Conditional hard assert.
-- 
cgit v1.2.3