Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

at_assert.h File Reference

#include "at_os.h"

Include dependency graph for at_assert.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  at

Defines

#define x_at_assert_h_x   1
#define AT_Assert(A)
#define AT_Abort()
#define x_AT_CAT_A_x(i_a, i_b)   i_a ## i_b
#define x_AT_CAT_x(i_a, i_b)   x_AT_CAT_A_x(i_a, i_b)
#define AT_SuffixLneNumber(i_a)   x_AT_CAT_x( i_a, __LINE__ )
#define AT_StaticAssert(i_condional, i_name)


Define Documentation

 
#define AT_Abort  
 

Value:

do {                                                                \
        if ( ::at::OSTraitsBase::GetRunningTestCase() ) {               \
            ::at::OSTraitsBase::TestCaseAbort( __FILE__, __LINE__ );    \
        }                                                               \
        * ::at::OSTraitsBase::GetAccVioAddr() = 0;                      \
    } while ( true )                                                    \

#define AT_Assert  
 

Value:

do {                                                                \
        if ( ! (A) ) {                                                  \
            if ( ::at::OSTraitsBase::GetRunningTestCase() ) {           \
                ::at::OSTraitsBase::TestCaseAssert( __FILE__, __LINE__ );\
            }                                                           \
                            \
            * ::at::OSTraitsBase::GetAccVioAddr() = 0;                  \
        }                                                               \
    } while ( false )                                                   \
AT_Assert performs the same operations as <cassert>'s assert() macro, however, this will throw a test case exception when running test cases.

#define AT_StaticAssert i_condional,
i_name   
 

Value:

struct AT_SuffixLneNumber( x_ ## i_name )                           \
    { char AT_StaticAssert_____ ## i_name ## _____AT_StaticAssert[ (i_condional) ? 1 : -1 ]; char m_v; }
AT_StaticAssert will cause a compilation error if the "cond" value is not true. The name should be descriptive.
Parameters:
i_condional  a constant expression that evaluates to false when a compilation error is needed.
i_name  Is a valid C++ identifer which contains a name.

#define AT_SuffixLneNumber i_a       x_AT_CAT_x( i_a, __LINE__ )
 

#define x_at_assert_h_x   1
 

at_assert.h

#define x_AT_CAT_A_x i_a,
i_b       i_a ## i_b
 

#define x_AT_CAT_x i_a,
i_b       x_AT_CAT_A_x(i_a, i_b)
 

Generated for Austria by doxygen and MakeXS at Sun Oct 24 17:35:34 PDT 2004