Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3204 in orxonox.OLD


Ignore:
Timestamp:
Dec 17, 2004, 5:39:03 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: added simple debug-function PRINTF()

Location:
orxonox/trunk/src
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/importer/framework.cc

    r3201 r3204  
    1515
    1616#include "framework.h"
    17 #define PRINTF(x) \
    18         if (verbose = x ) \
    19            printf ("%s:%d:", __FILE__, __LINE__); printf
    20 
    2117
    2218void DrawGLScene()
     
    5551int main(int argc, char *argv[])
    5652{
     53  int verbose = 2;
    5754
    5855  PRINTF(1)("This is The big verbose-Test %i, %s\n", 1, "cool");
    5956
    60   int verbose = 2;
    6157  Uint8* keys; // This variable will be used in the keyboard routine
    6258  int done=FALSE; // We aren't done yet, are we?
  • orxonox/trunk/src/orxonox.h

    r3022 r3204  
    66#ifndef ORXONOX_H
    77#define ORXONOX_H
    8 
    9 // this includes the information from configure/makefiles
    10 #if HAVE_CONFIG_H
    11 #include <config.h>
    12 #endif
    138
    149#include "stdincl.h"
  • orxonox/trunk/src/stdincl.h

    r3193 r3204  
    1010
    1111#define null 0   //!< null
     12
     13// this includes the information from configure/makefiles
     14#if HAVE_CONFIG_H
     15#include <config.h>
     16#endif
    1217
    1318#ifdef __WIN32__
     
    3035#include "list_template.h"
    3136#include "error.h"
     37#include "debug.h"
    3238#include "message_structures.h"
    3339#include "orxonox.h"
Note: See TracChangeset for help on using the changeset viewer.