C++ TargetRTS
Loading...
Searching...
No Matches
RTDiag.h
1/*
2 * Licensed Materials - Property of HCL and/or IBM
3 * Copyright HCL Technologies Ltd. 2016, 2021. All Rights Reserved.
4 * Copyright IBM Corporation 1999, 2016. All Rights Reserved.
5 *
6 * U.S. Government Users Restricted Rights - Use, duplication or
7 * disclosure restricted by GSA ADP Schedule.
8 */
9
10#ifndef __RTDiag_h__
11#define __RTDiag_h__ included
12
13#ifdef PRAGMA
14#pragma interface
15#endif
16
17#ifndef __RTConfig_h__
18#include <RTConfig.h>
19#endif
20
21class RTDiagStream;
22
23class RTDiag
24{
25public:
26 static void failed_assertion( const char * expr,
27 const char * file,
28 int line );
29 static void panic( const char * );
30
31 static RTDiagStream & out( void );
32};
33
34#ifndef RTAssert
35#if OTRTSDEBUG == DEBUG_NONE
36#define RTAssert( expr ) ( (void)0 )
37#else
38#define RTAssert( expr ) \
39 if( expr ) { } else RTDiag::failed_assertion( #expr, __FILE__, __LINE__ )
40#endif
41#endif
42
43#endif // __RTDiag_h__
Definition: RTDiag.h:24
Definition: RTDiagStream.h:33