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

Macros

#define cr_assert_null(Value, FormatString, ...)   internal
 
#define cr_expect_null(Value, FormatString, ...)   internal
 
#define cr_assert_not_null(Value, FormatString, ...)   internal
 
#define cr_expect_not_null(Value, FormatString, ...)   internal
 

Detailed Description

Macro Definition Documentation

◆ cr_assert_not_null

#define cr_assert_not_null ( Value,
FormatString,
... )   internal

Passes if Value is not NULL

Passes if Value is not NULL. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

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

Definition at line 418 of file assert.h.

◆ cr_assert_null

#define cr_assert_null ( Value,
FormatString,
... )   internal

Passes if Value is NULL

Passes if Value is NULL. Otherwise the test is marked as failure and the execution of the function is aborted.

The optional string is printed on failure.

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

Definition at line 387 of file assert.h.

◆ cr_expect_not_null

#define cr_expect_not_null ( Value,
FormatString,
... )   internal

Passes if Value is not NULL

Passes if Value is not NULL. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

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

Definition at line 433 of file assert.h.

◆ cr_expect_null

#define cr_expect_null ( Value,
FormatString,
... )   internal

Passes if Value is NULL

Passes if Value is NULL. Otherwise the test is marked as failure but the execution will continue.

The optional string is printed on failure.

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

Definition at line 402 of file assert.h.