NN_MINMAX_ASSERT

NN_MINMAX_ASSERT Macro

Syntax

#include <nn/assert.h>

#define NN_MINMAX_ASSERT(exp,min,max)

Parameters

Name Description
in exp Value to be tested.
in min Minimum value
in max Maximum value

Description

Tests whether a value is within the specified range.

Stops program execution if exp is less than min or greater than max.

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

Revision History

2011/12/16
Initial version.

CONFIDENTIAL