aboutsummaryrefslogtreecommitdiff
path: root/cassert/include/cassert.h
diff options
context:
space:
mode:
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