Skip to content

Releases: rpolitex/simpleassert

PlatformIO Properties changed to support any framework

Choose a tag to compare

@rpolitex rpolitex released this 10 May 20:56

Previously only Arduino framework support was declared.

Release/Development Log form

Choose a tag to compare

@rpolitex rpolitex released this 13 Nov 16:47

If macros DEV_MODE is defined, logs a printed in a full form: function name, file name, line of code. Also ASSERTION, CHECK0, CHEKOK, print a the full message (such as "FUNCTIONNAME returns non-zero errcode").

Otherwise (release mode) - the short form of log used: no file name, shorter messages.

DEV_MODE is enabled by default

One-statement Asserts

Choose a tag to compare

@rpolitex rpolitex released this 29 Oct 16:11
bde09d1
  1. Previously the ASSERT() macro has been composed of several statements: variable define and two if statements.
    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.
    ASSERT and CHECK1 become a one statement "if-based" macros.
    CHECK0 becomes a one statement nested "if-based" macro.

  2. CHECK1 now has synonym CHECKOK which seems to be more easy to read and understand.

  3. CHECK0 received new feature - error code retrieving. You can read the code, returned by function under the checking, by a special macro CHECK_RES. See Readme.md for examples.

Minor version updates

Choose a tag to compare

@rpolitex rpolitex released this 15 Jan 14:36
926ffde
3.2

Update library.properties

Printing to stdout, docs updated

Choose a tag to compare

@rpolitex rpolitex released this 15 Jan 14:34
b0161dd
3.1

Update README.md

Added default message supressing

Choose a tag to compare

@rpolitex rpolitex released this 03 Jan 16:04

Added a feature to suppress default assert/check messages:
ASSERT(x > 0, "") return -1;

CHECK0(foo(), "") { 
    printf("Some custom message\n");
    return -1;
}

2.1

2.1

Choose a tag to compare

@rpolitex rpolitex released this 02 Jan 10:49