Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
Base assertions

Macros

#define cr_assert_fail(FormatString, ...)   internal
 
#define cr_skip_test(FormatString, ...)   internal
 
#define cr_expect_fail(FormatString, ...)   internal
 
#define cr_assert(Condition, FormatString, ...)   internal
 
#define cr_expect(Condition, FormatString, ...)   internal
 
#define cr_assert_not(Condition, FormatString, ...)   internal
 
#define cr_expect_not(Condition, FormatString, ...)   internal
 

Detailed Description

Macro Definition Documentation

◆ cr_assert

#define cr_assert ( Condition,
FormatString,
... )   internal

Passes if Condition is true

Evaluates the condition and passes if it is true. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]ConditionCondition to test
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 89 of file assert.h.

◆ cr_assert_fail

#define cr_assert_fail ( FormatString,
... )   internal

Fails always.

The test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 52 of file assert.h.

◆ cr_assert_not

#define cr_assert_not ( Condition,
FormatString,
... )   internal

Passes if Condition is false

Evaluates the condition and passes if it is false. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

Parameters
[in]ConditionCondition to test
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 120 of file assert.h.

◆ cr_expect

#define cr_expect ( Condition,
FormatString,
... )   internal

Passes if Condition is true

Evaluates the condition and passes if it is true. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]ConditionCondition to test
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 104 of file assert.h.

◆ cr_expect_fail

#define cr_expect_fail ( FormatString,
... )   internal

Fails always.

The test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 73 of file assert.h.

◆ cr_expect_not

#define cr_expect_not ( Condition,
FormatString,
... )   internal

Passes if Condition is false

Evaluates the condition and passes if it is false. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

Parameters
[in]ConditionCondition to test
[in]FormatString(optional) printf-like format string
[in]...(optional) format string parameters

Definition at line 135 of file assert.h.

◆ cr_skip_test

#define cr_skip_test ( FormatString,
... )   internal

Skips the test

The test is marked as skipped and the execution of the function is aborted.

Definition at line 60 of file assert.h.