assert.h++: fix failure handling
parent
c61aca5b72
commit
d37f5581c3
|
@ -15,4 +15,4 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#define ASSERT(truth) if ((truth)); else std::cout << "Assertion failed: truth" << std::endl; return 1
|
#define ASSERT(truth) if ((truth)); else { std::cout << "Assertion failed: " << #truth << std::endl; return 1; }
|
||||||
|
|
Loading…
Reference in New Issue