Overture  Version 25
ArraySimpleCommon.h
Go to the documentation of this file.
1 #ifndef __ARRAY_SIMPLE_COMMON_H__
2 #define __ARRAY_SIMPLE_COMMON_H__
3 
4 // *wdh* 010730 : The SGI compiler wants to see iostream.h even though the new headers are supported for <string> etc.
5 // I hope I haven't broken anything here.
6 
7 //kkc 040415 #include <iostream.h>
8 #include "OvertureDefine.h"
9 #include OV_STD_INCLUDE(iostream)
10 
11 #ifndef OV_USE_OLD_STL_HEADERS
12 #include <string>
14 #else
15 #include <string.h>
16 #endif
17 
19 #ifndef EXPLICIT
20 #define EXPLICIT explicit
21 #endif
22 
32 #ifdef OV_DEBUG
33 #ifndef assert
34 #define assert(x) if ( !(x) ) throw "assertion failed"
35 #endif
36 #undef RANGE_CHK
37 #define RANGE_CHK(x) x
38 #else
39 #undef RANGE_CHK
40 #define RANGE_CHK(x) true
41 #ifndef assert
42 #define assert(x)
43 #endif
44 #endif
45 
46 // // //
48 
55 const int MAXRANK = 5;
56 // // //
57 
58 
59 #endif