NN_RESULT_ASSERT

NN_RESULT_ASSERT Macro

Syntax

#include <nn/assert.h>

#define NN_RESULT_ASSERT(exp)

Arguments

Name Description
in exp Value to be tested.

Description

Tests whether Result represents success.

This function presumes that exp is defined as a nn::Result type. It stops program execution if exp.IsSuccess function returns FALSE.

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

Revision History

2011/12/16
Initial version.

CONFIDENTIAL