NN_ASSERT

NN_ASSERT Macro

Syntax

#include <nn/assert.h>

#define NN_ASSERT(exp)

Arguments

Name Description
in exp Condition to be tested.

Description

Tests whether conditions are satisfied.

It stops program execution if exp is FALSE.

Behavior differs from assert-type macros as follows depending on the build macro specified.

If NN_SWITCH_DISABLE_ASSERT_WARNING has been defined, this macro is replaced with an dummy process, no testing is performed, and program execution does not stop. Note that exp is not evaluated in this case.

If NN_SWITCH_DISABLE_DEBUG_PRINT is defined, testing is performed and program execution may stop depending on test results, but nothing is output to debug output.

Revision History

2011/12/16
Initial version.

CONFIDENTIAL