One-statement Asserts
-
Previously the
ASSERT()macro has been composed of several statements: variable define and twoifstatements.
This is not always acceptable as the user sees only one simple macro call (ASSERT()) in the code and wants to treat it as a one statement or like a function call.
So, all main macros (ASSERT,CHECK1,CHECK0) have been refactored in this release.
ASSERTandCHECK1become a one statement "if-based" macros.
CHECK0becomes a one statement nested "if-based" macro. -
CHECK1now has synonymCHECKOKwhich seems to be more easy to read and understand. -
CHECK0received new feature - error code retrieving. You can read the code, returned by function under the checking, by a special macroCHECK_RES. SeeReadme.mdfor examples.