aboutsummaryrefslogtreecommitdiff
path: root/cassert/include/cassert.h
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-09-16 08:50:50 -0700
committer3gg <3gg@shellblade.net>2024-09-16 08:50:50 -0700
commitb540364f3842fe6ea41a908c905e12e4458e4fef (patch)
treec33cb2f37af0901091306c97f5164b18fe297221 /cassert/include/cassert.h
parent448343bc6f092e0dd08591d97007034533fb473b (diff)
Fix warnings.
Diffstat (limited to 'cassert/include/cassert.h')
-rw-r--r--cassert/include/cassert.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/cassert/include/cassert.h b/cassert/include/cassert.h
index bb98f50..590f684 100644
--- a/cassert/include/cassert.h
+++ b/cassert/include/cassert.h
@@ -6,18 +6,11 @@
6// Allow the client to define their own LOGE() macro. 6// Allow the client to define their own LOGE() macro.
7#ifndef LOGE 7#ifndef LOGE
8#include <stdio.h> 8#include <stdio.h>
9// __VA_OPT__ is not available until C2X. 9#define LOGE(...) \
10/*#define LOGE(format, ...) \ 10 { \
11 { \ 11 fprintf(stderr, "[ASSERT] %s:%d", __FILE__, __LINE__); \
12 fprintf( \ 12 fprintf(stderr, " " __VA_ARGS__); \
13 stderr, "[ASSERT] %s:%d " format "\n", __FILE__, \ 13 fprintf(stderr, "\n"); \
14 __LINE__ __VA_OPT__(, ) __VA_ARGS__); \
15 }*/
16#define LOGE(...) \
17 { \
18 fprintf(stderr, "[ASSERT] %s:%d ", __FILE__, __LINE__); \
19 fprintf(stderr, __VA_ARGS__); \
20 fprintf(stderr, "\n"); \
21 } 14 }
22#endif // LOGE 15#endif // LOGE
23 16