mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-27 01:14:44 +01:00
Rename assert by assertTrue
This commit is contained in:
@@ -220,10 +220,16 @@ inline std::string TestCase::toString()
|
||||
// and file name at the point of an error.
|
||||
// Just goes to show that preprocessors do have some
|
||||
// redeeming qualities.
|
||||
|
||||
// for backward compatibility only
|
||||
// (may conflict with C assert, use at your own risk)
|
||||
#undef assert
|
||||
#define assert(condition) \
|
||||
(this->assertImplementation((condition), (#condition), __LINE__, __FILE__))
|
||||
|
||||
#define assertTrue(condition) \
|
||||
(this->assertImplementation((condition), (#condition), __LINE__, __FILE__))
|
||||
|
||||
#define loop_1_assert(data1line, condition) \
|
||||
(this->loop1assertImplementation((condition), (#condition), __LINE__, data1line, __FILE__))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user