Reduce assert stack depth
This may cause page fault in test
This commit is contained in:
parent
7c227a730c
commit
a02167ad88
@ -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) { \
|
||||
} \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user