Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3294 in orxonox.OLD for orxonox/branches


Ignore:
Timestamp:
Dec 26, 2004, 6:44:44 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/updater: merged debug.h from trunk, and just some doxy-tags added

Location:
orxonox/branches/updater/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/updater/src/debug.h

    r3262 r3294  
    22#define _DEBUG_H
    33
    4 #include <stdio.h>
     4
     5///////////////////////////////////////////////////
     6/// PRINTF: prints with filename and linenumber ///
     7///////////////////////////////////////////////////
    58
    69#ifdef  DEBUG
     
    4952    printf("%s:%d::", __FILE__, __LINE__) && printf
    5053
     54
     55
     56
     57///////////////////////////////////////////////////
     58///  PRINT: just prints output as is            ///
     59///////////////////////////////////////////////////
     60
     61#ifdef  DEBUG
     62#define PRINT(x) \
     63           PRINT ## x
     64
     65#if DEBUG >= 1
     66#define PRINT1 \
     67    if (verbose >= 1 ) \
     68      printf
     69#else
     70#define PRINT1 //
     71#endif
     72     
     73#if DEBUG >= 2
     74#define PRINT2 \
     75     if (verbose >= 2 ) \
     76       printf
     77
     78#else
     79#define PRINT2 //
     80#endif
     81     
     82#if DEBUG >= 3
     83#define PRINT3 \
     84     if (verbose >= 3 ) \
     85       printf
     86#else
     87#define PRINT3 //
     88#endif
     89     
     90#if DEBUG >= 4
     91#define PRINT4 \
     92     if (verbose >= 4 ) \
     93       printf
     94#else
     95#define PRINT4 //
     96#endif
     97     
     98     
     99#else 
     100#define PRINT(x) //
     101#endif
     102
     103#define PRINT0 \
     104           printf
     105
     106
     107///////////////////////////////////////////////////
     108/// COUT: simple cout print with verbose-check  ///
     109///////////////////////////////////////////////////
     110#ifdef  DEBUG
     111#define COUT(x) \
     112           COUT ## x
     113
     114#if DEBUG >= 1
     115#define COUT1 \
     116    if (verbose >= 1 ) \
     117      cout
     118#else
     119#define COUT1 //
     120#endif
     121     
     122#if DEBUG >= 2
     123#define COUT2 \
     124     if (verbose >= 2 ) \
     125       cout
     126
     127#else
     128#define COUT2 //
     129#endif
     130     
     131#if DEBUG >= 3
     132#define COUT3 \
     133     if (verbose >= 3 ) \
     134       cout
     135#else
     136#define COUT3 //
     137#endif
     138     
     139#if DEBUG >= 4
     140#define COUT4 \
     141     if (verbose >= 4 ) \
     142       cout
     143#else
     144#define COUT4 //
     145#endif
     146     
     147     
     148#else 
     149#define COUT(x) //
     150#endif
     151
     152#define COUT0 \
     153           cout
     154
    51155#endif /* _DEBUG_H */
  • orxonox/branches/updater/src/gui/orxonox_gui_exec.cc

    r3292 r3294  
    225225   \brief Maps Confugurations to the Options.
    226226   \param widget which widget downwards
    227    \param variableName the name of the Variable that should be set up.
    228    \param variableValue the Value of the Variable that should be set up
    229    \param depth the depth of the local Widget
     227   \param varInfo Information about the Variable to read
    230228*/
    231229void OrxonoxGuiExec::readFileText (Widget* widget, void* varInfo)
  • orxonox/branches/updater/src/gui/orxonox_gui_gtk.cc

    r3292 r3294  
    154154   \brief Moves through all the Widgets downwards from this and executes the function on them.
    155155   \param function must be of type void and takes a Widget* as an Input.
     156   \param depth the current depth. if > 0 then the next Widget will also be walked through.
    156157*/
    157158void Widget::walkThrough (void (*function)(Widget*), unsigned int depth)
     
    171172   \param function must be of type void and takes a Widget* as an Input.
    172173   \param data Additional Data you want to pass to the function.
     174   \param depth the current depth. if > 0 then the next Widget will also be walked through.
    173175*/
    174176void Widget::walkThrough (void (*function)(Widget*, void*), void* data, unsigned int depth)
Note: See TracChangeset for help on using the changeset viewer.