assert.h++: fix failure handling

BodgeMaster-unfinished
BodgeMaster 2022-06-28 20:11:24 +02:00
parent c61aca5b72
commit d37f5581c3
1 changed files with 1 additions and 1 deletions

View File

@ -15,4 +15,4 @@
#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; }