aboutsummaryrefslogtreecommitdiff
path: root/cassert
diff options
context:
space:
mode:
Diffstat (limited to 'cassert')
-rw-r--r--cassert/include/cassert.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/cassert/include/cassert.h b/cassert/include/cassert.h
index ef6e033..8cd1391 100644
--- a/cassert/include/cassert.h
+++ b/cassert/include/cassert.h
@@ -6,11 +6,18 @@
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#define LOGE(format, ...) \ 9// __VA_OPT__ is not available until C2X.
10 { \ 10/*#define LOGE(format, ...) \
11 fprintf( \ 11// { \
12 stderr, "[ASSERT] %s:%d " format "\n", __FILE__, \ 12// fprintf( \
13 __LINE__ __VA_OPT__(, ) __VA_ARGS__); \ 13// stderr, "[ASSERT] %s:%d " format "\n", __FILE__, \
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"); \
14 } 21 }
15#endif // LOGE 22#endif // LOGE
16 23