Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3601 in orxonox.OLD for orxonox/trunk/src/defs


Ignore:
Timestamp:
Mar 18, 2005, 2:22:57 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: no more movement at the end of the Track

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/defs/debug.h

    r3597 r3601  
    1717    \file debug.h
    1818    \brief Handles output to console for different Verbose-Modes.
     19
     20    There are two main modes HARD and SOFT. HARD is precessed during compileTime where SOFT is for runtime.
     21    \li HARD: One can choose between different modes. see: // DEFINE_MODULES \\
     22    \li SOFT: If you want each module can have its own variable for processing. just pass it to DEBUG_MODULE_SOFT
    1923*/
    2024
     
    3842extern int verbose;
    3943
     44//definitions
    4045#ifndef MODULAR_DEBUG
    4146#define HARD_DEBUG_LEVEL DEBUG
     47#define SOFT_DEBUG_LEVEL verbose
    4248#else /* MODULAR_DEBUG */
     49#ifndef DEBUG_MODULE_SOFT
     50#define SOFT_DEBUG_LEVEL verbose
     51#else /* DEBUG_MODULE_SOFT */
     52#define SOFT_DEBUG_LEVEL DEBUG_MODULE_SOFT
     53#endif /* DEBUG_MODULE_SOFT */
     54
    4355#ifndef DEBUG_SPECIAL_MODULE
    4456#define HARD_DEBUG_LEVEL DEBUG
     
    7486#if HARD_DEBUG_LEVEL >= ERR
    7587#define PRINTF1 \
    76     if (verbose >= ERR) \
     88    if (SOFT_DEBUG_LEVEL >= ERR) \
    7789      printf("ERROR::%s:%d:", __FILE__, __LINE__) && printf
    7890#else
     
    8294#if HARD_DEBUG_LEVEL >= WARN
    8395#define PRINTF2 \
    84      if (verbose >= WARN) \
     96     if (SOFT_DEBUG_LEVEL >= WARN) \
    8597       printf("WARNING::%s:%d:", __FILE__, __LINE__) && printf
    8698         
     
    91103#if HARD_DEBUG_LEVEL >= INFO
    92104#define PRINTF3 \
    93      if (verbose >= INFO) \
     105     if (SOFT_DEBUG_LEVEL >= INFO) \
    94106       printf("INFO::%s:%d:", __FILE__, __LINE__) && printf
    95107#else
     
    99111#if HARD_DEBUG_LEVEL >= DEBUGING
    100112#define PRINTF4 \
    101      if (verbose >= DEBUGING) \
     113     if (SOFT_DEBUG_LEVEL >= DEBUGING) \
    102114       printf("DEBUG::%s:%d:", __FILE__, __LINE__) && printf
    103115#else
     
    107119#if HARD_DEBUG_LEVEL >= vDEBUGING
    108120#define PRINTF5 \
    109      if (verbose >= vDEBUGING) \
     121     if (SOFT_DEBUG_LEVEL >= vDEBUGING) \
    110122       printf("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && printf
    111123#else
     
    130142#if HARD_DEBUG_LEVEL >= ERR
    131143#define PRINT1  \
    132   if (verbose >= ERR)   \
     144  if (SOFT_DEBUG_LEVEL >= ERR)  \
    133145    printf
    134146#else
     
    138150#if HARD_DEBUG_LEVEL >= WARN
    139151#define PRINT2 \
    140   if (verbose >= WARN) \
     152  if (SOFT_DEBUG_LEVEL >= WARN) \
    141153    printf
    142154
     
    147159#if HARD_DEBUG_LEVEL >= INFO
    148160#define PRINT3 \
    149   if (verbose >= INFO) \
     161  if (SOFT_DEBUG_LEVEL >= INFO) \
    150162    printf
    151163#else
     
    155167#if HARD_DEBUG_LEVEL >= DEBUGING
    156168#define PRINT4 \
    157   if (verbose >= DEBUGING) \
     169  if (SOFT_DEBUG_LEVEL >= DEBUGING) \
    158170    printf
    159171#else
     
    163175#if HARD_DEBUG_LEVEL >= vDEBUGING
    164176#define PRINT5 \
    165      if (verbose >= vDEBUGING) \
     177     if (SOFT_DEBUG_LEVEL >= vDEBUGING) \
    166178       printf("VERYDEBUG::%s:%d:", __FILE__, __LINE__) && printf
    167179#else
     
    186198#if HARD_DEBUG_LEVEL >= 1
    187199#define COUT1 \
    188     if (verbose >= 1 ) \
     200    if (SOFT_DEBUG_LEVEL >= 1 ) \
    189201      cout
    190202#else
     
    194206#if HARD_DEBUG_LEVEL >= 2
    195207#define COUT2 \
    196      if (verbose >= 2 ) \
     208     if (SOFT_DEBUG_LEVEL >= 2 ) \
    197209       cout
    198210
     
    203215#if HARD_DEBUG_LEVEL >= 3
    204216#define COUT3 \
    205      if (verbose >= 3 ) \
     217     if (SOFT_DEBUG_LEVEL >= 3 ) \
    206218       cout
    207219#else
     
    211223#if HARD_DEBUG_LEVEL >= 4
    212224#define COUT4 \
    213      if (verbose >= 4 ) \
     225     if (SOFT_DEBUG_LEVEL >= 4 ) \
    214226       cout
    215227#else
Note: See TracChangeset for help on using the changeset viewer.