~ubuntu-branches/ubuntu/maverick/openturns/maverick

« back to all changes in this revision

Viewing changes to lib/include/OTdebug.h

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme
  • Date: 2008-11-18 06:32:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081118063222-pa0qncclrerrqkg2
Tags: 0.12.2-1
* New upstream release
* Bug fix: "New upstream release available (0.12.2)", thanks to Jerome
  Robert (Closes: #506005).
* Applied patch by J. Robert.
* debian/control: build-depends on libxml2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//                                               -*- C++ -*-
 
1
//                                               -*- C -*-
2
2
/**
3
3
 *  @file  OTdebug.h
4
4
 *  @brief The header file of Open TURNS for debug level
20
20
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21
21
 *
22
22
 *  @author: $LastChangedBy: dutka $
23
 
 *  @date:   $LastChangedDate: 2008-06-26 13:50:17 +0200 (jeu, 26 jun 2008) $
24
 
 *  Id:      $Id: OTdebug.h 862 2008-06-26 11:50:17Z dutka $
 
23
 *  @date:   $LastChangedDate: 2008-10-29 18:54:45 +0100 (mer 29 oct 2008) $
 
24
 *  Id:      $Id: OTdebug.h 990 2008-10-29 17:54:45Z dutka $
25
25
 */
26
26
#ifndef OPENTURNS_OTDEBUG_H
27
27
#define OPENTURNS_OTDEBUG_H
31
31
                     + __GNUC_MINOR__ * 100           \
32
32
                     + __GNUC_PATCHLEVEL__)
33
33
 
 
34
#if GCC_VERSION <= 30406 /* GCC 3.4.6 and below */
 
35
#define REINTERPRET_CAST(T,V) ( (T) (V) )
 
36
#else /* GCC after 3.4.6 */
 
37
#define REINTERPRET_CAST(T,V) ( reinterpret_cast< T > (V) )
 
38
#endif
 
39
 
34
40
#define DEPRECATED  __attribute__ ((deprecated))
35
41
#define UNUSED      __attribute__ ((unused))
36
42
 
47
53
#define OT_DEBUG_LEVEL 0
48
54
#endif
49
55
 
50
 
const int DebugLevel = OT_DEBUG_LEVEL;
51
56
#if (OT_DEBUG_LEVEL >= 1)
 
57
#define DEBUG
52
58
#define DEBUG_1
53
59
#if (OT_DEBUG_LEVEL >= 2)
54
60
#define DEBUG_2