NN_ASSERTMSG_WITH_RESULT

NN_ASSERTMSG_WITH_RESULT Macro

Syntax

#include <nn/assert.h>

#define NN_ASSERTMSG_WITH_RESULT(exp,result,...)

Parameters

Name Description
in exp Condition to be tested.
in result The result displayed when conditions are not met.
in ... The message and parameters displayed when conditions are not met.

Description

Tests whether conditions are satisfied. Displays the specified result values and message when conditions are not satisfied.

Stops program execution and displays the value of result and the specified message if exp is FALSE.

For common specifications of assert-type macros, see NN_ASSERT.

Revision History

2011/12/16
Initial version.

CONFIDENTIAL