vmassert reports also the source file in which it was triggered
This commit is contained in:
parent
cf854041ce
commit
616d936638
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@
|
||||||
|
|
||||||
#if DEBUG_VMASSERT
|
#if DEBUG_VMASSERT
|
||||||
#define vmassert(t) { \
|
#define vmassert(t) { \
|
||||||
if(!(t)) { minix_panic("vm: assert " #t " failed\n", __LINE__); } }
|
if(!(t)) { minix_panic("vm: assert " #t " failed in " __FILE__, __LINE__); } }
|
||||||
#else
|
#else
|
||||||
#define vmassert(t) { }
|
#define vmassert(t) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue