lingjf / h2unit

Light-weight (as light as hydrogen) unit test framework for C/C++, since 2012
Apache License 2.0
10 stars 6 forks source link

Can't take over assert() macro #5

Closed lingjf closed 4 years ago

lingjf commented 11 years ago

A normal idea to replace assert() is undefine assert first, then define assert to new function. Include assert.h (cassert) before re-define assert. But in actual, assert.h does not following #ifndef/#define/#endif mode , so the normal idea does not work. More information refer to /user/include/assert.h

lingjf commented 4 years ago

leave assert alone