Reduce assert stack depth

This may cause page fault in test
This commit is contained in:
Mathieu Maret 2021-11-03 23:37:44 +01:00
parent 7c227a730c
commit a02167ad88
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
do { \
if (!(p)) { \
printf("BUG at %s:%d assert(%s)\n", __FILE__, __LINE__, #p); \
printStackTrace(5); \
printStackTrace(3); \
while (1) { \
} \
} \
@ -17,7 +17,7 @@
if (!(p)) { \
printf("BUG at %s:%d assert(%s)\n", __FILE__, __LINE__, #p); \
printf(__VA_ARGS__); \
printStackTrace(5); \
printStackTrace(3); \
while (1) { \
} \
} \