Salome HOME
Fix misprint
[tools/install.git] / src / globals.h
1 //  File      : globals.h
2 //  Created   : 14/01/2005
3 //  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
4 //  Project   : SALOME
5 //  Module    : Installation Wizard
6 //  Copyright : 2002-2013 CEA
7
8 #if !defined( ___GLOBALS )
9 #define ___GLOBALS
10
11 // ========================
12 // process debug messages
13 // ========================
14
15 #include <qglobal.h>
16 #include <iostream>
17
18 #define __IW_VERSION_MAJOR__ 1
19 #define __IW_VERSION_MINOR__ 2
20 #define __IW_VERSION_PATCH__ 0
21
22 #define __IW_VERSION__ (__IW_VERSION_MAJOR__*10000 + \
23                         __IW_VERSION_MINOR__*100   + \
24                         __IW_VERSION_PATCH__)
25
26 #ifdef QT_DEBUG
27
28 #define ___MESSAGE___( x ) std::cout << x << std::endl;
29
30 #else
31
32 #define ___MESSAGE___( x )
33
34 #endif
35
36 #define ___DEBUG___( x )   ___MESSAGE___( "DEBUG: " << x   )
37 #define ___WARNING___( x ) ___MESSAGE___( "WARNING: " << x )
38 #define ___FATAL___( x )   ___MESSAGE___( "FATAL: " << x   )
39
40 #endif // ___GLOBALS