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 { \
|
do { \
|
||||||
if (!(p)) { \
|
if (!(p)) { \
|
||||||
printf("BUG at %s:%d assert(%s)\n", __FILE__, __LINE__, #p); \
|
printf("BUG at %s:%d assert(%s)\n", __FILE__, __LINE__, #p); \
|
||||||
printStackTrace(5); \
|
printStackTrace(3); \
|
||||||
while (1) { \
|
while (1) { \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
@ -17,7 +17,7 @@
|
|||||||
if (!(p)) { \
|
if (!(p)) { \
|
||||||
printf("BUG at %s:%d assert(%s)\n", __FILE__, __LINE__, #p); \
|
printf("BUG at %s:%d assert(%s)\n", __FILE__, __LINE__, #p); \
|
||||||
printf(__VA_ARGS__); \
|
printf(__VA_ARGS__); \
|
||||||
printStackTrace(5); \
|
printStackTrace(3); \
|
||||||
while (1) { \
|
while (1) { \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
Loading…
Reference in New Issue
Block a user