SDK_COMPILER_ASSERT

Syntax

#include <nitro/misc.h>

SDK_COMPILER_ASSERT(expr);

Arguments

expr The condition parameter.

Return Values

None.

Description

Conditions are inspected when compiling. If conditions are not met, the macro makes a compile error.

This macro makes compile errors in the following situation. SDK_COMPILER_ASSERT( expr ) is when the evaluation expression expr is false (when expr is not established).

Caution: This argument can only handle evaluation expressions constructed from information known when compiling, such as structure size or constants.

See Also

Revision History

2005/11/07 Initial version.


CONFIDENTIAL