- Timestamp:
- Mar 17, 2005, 3:33:58 PM (20 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/config.h.in
r3460 r3592 89 89 #undef HAVE__BOOL 90 90 91 /* if Modular-DUBUG mode is enabled */ 92 #undef MODULAR_DEBUG 93 91 94 /* Name of package */ 92 95 #undef PACKAGE -
orxonox/trunk/configure
r3569 r3592 867 867 --enable-debug compiles in debug mode. Lots of debug info about the 868 868 game. 869 --disable-modular-debug compiles in modular-debug mode, that logs 870 differently on the many modules of orxonox. 869 871 --enable-sub-projects also builds the subProjects while make from srcdir 870 872 --enable-documentation also builds the sDocumentation while make from … … 3862 3864 if test x$DEBUG = xno; then 3863 3865 echo "no" 3864 echo " -> Setting debuglevel to 3. (orxonox is still in Development. It really is needed."3865 DEBUG= 33866 echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." 3867 DEBUG=4 3866 3868 elif test x$DEBUG = xyes; then 3867 3869 echo "yes" … … 3878 3880 3879 3881 3882 3883 #---------------# 3884 # Modular Debug # 3885 #---------------# 3886 MODULAR_DEBUG=yes 3887 echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 3888 echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 3889 # Check whether --enable-modular-debug or --disable-modular-debug was given. 3890 if test "${enable_modular_debug+set}" = set; then 3891 enableval="$enable_modular_debug" 3892 MODULAR_DEBUG=$enableval 3893 fi; 3894 3895 if test x$MODULAR_DEBUG = xno; then 3896 echo "no" 3897 elif test x$MODULAR_DEBUG = xyes; then 3898 echo "yes" 3899 3900 cat >>confdefs.h <<_ACEOF 3901 #define MODULAR_DEBUG 1 3902 _ACEOF 3903 3904 fi 3880 3905 3881 3906 #--------------# -
orxonox/trunk/configure.ac
r3569 r3592 56 56 if test x$DEBUG = xno; then 57 57 echo "no" 58 echo " -> Setting debuglevel to 3. (orxonox is still in Development. It really is needed."59 DEBUG= 358 echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." 59 DEBUG=4 60 60 elif test x$DEBUG = xyes; then 61 61 echo "yes" … … 68 68 69 69 AC_SUBST(DEBUG) 70 71 #---------------# 72 # Modular Debug # 73 #---------------# 74 MODULAR_DEBUG=yes 75 AC_MSG_CHECKING([if Modular-DEBUG-mode should be ebabled]) 76 AC_ARG_ENABLE([modular-debug], 77 AC_HELP_STRING( [--disable-modular-debug], [compiles in modular-debug mode, that logs differently on the many modules of orxonox.]), 78 MODULAR_DEBUG=$enableval) 79 80 if test x$MODULAR_DEBUG = xno; then 81 echo "no" 82 elif test x$MODULAR_DEBUG = xyes; then 83 echo "yes" 84 AC_DEFINE_UNQUOTED(MODULAR_DEBUG, 1, [if Modular-DUBUG mode is enabled]) 85 fi 70 86 71 87 #--------------# -
orxonox/trunk/src/defs/debug.h
r3591 r3592 36 36 #define vDEBUGING 5 37 37 38 extern int verbose; 39 40 #ifndef MODULAR_DEBUG 41 #define HARD_DEBUG_LEVEL DEBUG 42 #else /* MODULAR_DEBUG */ 38 43 #ifndef DEBUG_SPECIAL_MODULE 39 extern int verbose; 40 #else 44 #define HARD_DEBUG_LEVEL DEBUG 45 #else /* DEBUG_SPECIAL_MODULE */ 41 46 // DEFINE MODULES \\ 42 47 #define DEBUG_MODULE_ORXONOX 0 … … 54 59 #define DEBUG_MODULE_NULL_PARENT 0 55 60 56 #define verbose DEBUG_SPECIAL_MODULE 57 58 #endif 61 62 #define HARD_DEBUG_LEVEL DEBUG_SPECIAL_MODULE 63 #endif /* DEBUG_SPECIAL_MODULE */ 64 #endif /* MODULAR_DEBUG */ 59 65 /////////////////////////////////////////////////// 60 66 /// PRINTF: prints with filename and linenumber /// … … 66 72 PRINTF ## x 67 73 68 #if DEBUG>= ERR74 #if HARD_DEBUG_LEVEL >= ERR 69 75 #define PRINTF1 \ 70 76 if (verbose >= ERR) \ … … 74 80 #endif 75 81 76 #if DEBUG>= WARN82 #if HARD_DEBUG_LEVEL >= WARN 77 83 #define PRINTF2 \ 78 84 if (verbose >= WARN) \ … … 83 89 #endif 84 90 85 #if DEBUG>= INFO91 #if HARD_DEBUG_LEVEL >= INFO 86 92 #define PRINTF3 \ 87 93 if (verbose >= INFO) \ … … 91 97 #endif 92 98 93 #if DEBUG>= DEBUGING99 #if HARD_DEBUG_LEVEL >= DEBUGING 94 100 #define PRINTF4 \ 95 101 if (verbose >= DEBUGING) \ … … 99 105 #endif 100 106 101 #if DEBUG>= vDEBUGING107 #if HARD_DEBUG_LEVEL >= vDEBUGING 102 108 #define PRINTF5 \ 103 109 if (verbose >= vDEBUGING) \ … … 122 128 PRINT ## x 123 129 124 #if DEBUG>= ERR130 #if HARD_DEBUG_LEVEL >= ERR 125 131 #define PRINT1 \ 126 132 if (verbose >= ERR) \ … … 130 136 #endif 131 137 132 #if DEBUG>= WARN138 #if HARD_DEBUG_LEVEL >= WARN 133 139 #define PRINT2 \ 134 140 if (verbose >= WARN) \ … … 139 145 #endif 140 146 141 #if DEBUG>= INFO147 #if HARD_DEBUG_LEVEL >= INFO 142 148 #define PRINT3 \ 143 149 if (verbose >= INFO) \ … … 147 153 #endif 148 154 149 #if DEBUG>= DEBUGING155 #if HARD_DEBUG_LEVEL >= DEBUGING 150 156 #define PRINT4 \ 151 157 if (verbose >= DEBUGING) \ … … 155 161 #endif 156 162 157 #if DEBUG>= vDEBUGING163 #if HARD_DEBUG_LEVEL >= vDEBUGING 158 164 #define PRINT5 \ 159 165 if (verbose >= vDEBUGING) \ … … 178 184 COUT ## x 179 185 180 #if DEBUG>= 1186 #if HARD_DEBUG_LEVEL >= 1 181 187 #define COUT1 \ 182 188 if (verbose >= 1 ) \ … … 186 192 #endif 187 193 188 #if DEBUG>= 2194 #if HARD_DEBUG_LEVEL >= 2 189 195 #define COUT2 \ 190 196 if (verbose >= 2 ) \ … … 195 201 #endif 196 202 197 #if DEBUG>= 3203 #if HARD_DEBUG_LEVEL >= 3 198 204 #define COUT3 \ 199 205 if (verbose >= 3 ) \ … … 203 209 #endif 204 210 205 #if DEBUG>= 4211 #if HARD_DEBUG_LEVEL >= 4 206 212 #define COUT4 \ 207 213 if (verbose >= 4 ) \ -
orxonox/trunk/src/orxonox.cc
r3548 r3592 31 31 #include "game_loader.h" 32 32 #include <string.h> 33 int verbose = 3;33 int verbose = 4; 34 34 35 35 using namespace std;
Note: See TracChangeset
for help on using the changeset viewer.