Changeset 3205 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Dec 17, 2004, 7:27:59 PM (20 years ago)
- Location:
- orxonox/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/Makefile.in
r3198 r3205 619 619 \ 620 620 $(DX_CONF_DIR)/progress >> $(DX_CONFIG_FILE); \ 621 if test $(DEBUG) = yes; then \621 if test $(DEBUG) -ge 2 ; then \ 622 622 echo "QUIET = \"NO\"" >> $(DX_CONFIG_FILE); \ 623 623 else \ -
orxonox/trunk/config.h.in
r3178 r3205 1 1 /* config.h.in. Generated from configure.ac by autoheader. */ 2 2 3 /* i f we ar in Debug Mode */3 /* in which debug mode we are */ 4 4 #undef DEBUG 5 5 -
orxonox/trunk/configure
r3197 r3205 865 865 --disable-dependency-tracking speeds up one-time build 866 866 --enable-dependency-tracking do not reject slow dependency extractors 867 --enable-debug compiles GTK in debug mode. Lots of Debug info about868 the game867 --enable-debug compiles in debug mode. Lots of debug info about the 868 game. 869 869 870 870 Optional Packages: … … 3846 3846 if test "${enable_debug+set}" = set; then 3847 3847 enableval="$enable_debug" 3848 DEBUG= yes3848 DEBUG=$enableval 3849 3849 fi; 3850 echo "$DEBUG" 3851 if test "$DEBUG" = yes; then 3850 3851 if test "$DEBUG" = "no"; then 3852 echo "no" 3853 echo " -> Setting debuglevel to 1. Like this you can still see errors." 3854 DEBUG=1 3855 elif test "$DEBUG" = yes; then 3856 echo "yes" 3857 echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!." 3858 DEBUG=3 3859 else 3860 echo "yes set to $DEBUG" 3861 fi 3852 3862 3853 3863 cat >>confdefs.h <<_ACEOF 3854 #define DEBUG 13855 _ACEOF 3856 3857 fi 3864 #define DEBUG $DEBUG 3865 _ACEOF 3866 3867 3858 3868 3859 3869 3860 3870 3861 3871 ## GTK-disabled 3862 def_gtk=yes3863 3872 echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 3864 3873 echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 … … 3868 3877 withval="$with_gtk" 3869 3878 def_gtk=no 3879 else 3880 def_gtk=yes 3870 3881 fi; 3871 3882 if test "$def_gtk" = yes; then -
orxonox/trunk/configure.ac
r3197 r3205 26 26 AC_MSG_CHECKING([if DEBUG-mode should be enabled]) 27 27 AC_ARG_ENABLE([debug], 28 AC_HELP_STRING( [--enable-debug], [compiles GTK in debug mode. Lots of Debug info about the game]), 29 [DEBUG=yes]) 30 echo "$DEBUG" 31 if test "$DEBUG" = yes; then 32 AC_DEFINE_UNQUOTED(DEBUG, 1, [if we ar in Debug Mode]) 33 fi 28 AC_HELP_STRING( [--enable-debug], [compiles in debug mode. Lots of debug info about the game.]), 29 DEBUG=$enableval) 30 31 if test "$DEBUG" = "no"; then 32 echo "no" 33 echo " -> Setting debuglevel to 1. Like this you can still see errors." 34 DEBUG=1 35 elif test "$DEBUG" = yes; then 36 echo "yes" 37 echo " -> Setting debuglevel to 3. HARD DEBUG MODE!!." 38 DEBUG=3 39 else 40 echo "yes set to $DEBUG" 41 fi 42 AC_DEFINE_UNQUOTED(DEBUG, $DEBUG, [in which debug mode we are]) 43 34 44 AC_SUBST(DEBUG) 35 45 36 46 37 47 ## GTK-disabled 38 def_gtk=yes39 48 AC_MSG_CHECKING([if gtk should be enabled]) 40 49 AC_ARG_WITH([gtk], 41 50 AC_HELP_STRING( [--without-gtk], 42 [Prevents GTK from being loaded]), [def_gtk=no] )51 [Prevents GTK from being loaded]), [def_gtk=no], [def_gtk=yes]) 43 52 if test "$def_gtk" = yes; then 44 53 echo "yes" -
orxonox/trunk/doc/documentation.am
r3173 r3205 25 25 \ 26 26 $(DX_CONF_DIR)/progress >> $(DX_CONFIG_FILE); \ 27 if test $(DEBUG) = yes; then \27 if test $(DEBUG) -ge 2 ; then \ 28 28 echo "QUIET = \"NO\"" >> $(DX_CONFIG_FILE); \ 29 29 else \ -
orxonox/trunk/src/debug.h
r3204 r3205 3 3 4 4 #ifdef DEBUG 5 #define PRINTF(x) \ 6 if (verbose >= x ) \ 7 printf ("%s:%d:", __FILE__, __LINE__); \ 8 if (verbose >= x) printf 5 #define PRINTF(x) \ 6 PRINTF ## x 7 8 #if DEBUG >= 1 9 #define PRINTF1 \ 10 if (verbose >= 1 ) \ 11 printf ("%s:%d:", __FILE__, __LINE__); \ 12 if (verbose >= 1) printf 13 #else 14 #define PRINTF1 15 #endif 16 17 #if DEBUG >= 2 18 #define PRINTF2 \ 19 if (verbose >= 2 ) \ 20 printf ("%s:%d:", __FILE__, __LINE__); \ 21 if (verbose >= 2) printf 22 #else 23 #define PRINTF2 24 #endif 25 26 #if DEBUG >= 3 27 #define PRINTF3 \ 28 if (verbose >= 3 ) \ 29 printf ("%s:%d:", __FILE__, __LINE__); \ 30 if (verbose >= 3) printf 31 #else 32 #define PRINTF3 33 #endif 34 35 #if DEBUG >= 4 36 #define PRINTF4 \ 37 if (verbose >= 4 ) \ 38 printf ("%s:%d:", __FILE__, __LINE__); \ 39 if (verbose >= 4) printf 40 #else 41 #define PRINTF4 42 #endif 43 44 9 45 #else 10 46 #define PRINTF(x) 11 47 #endif 12 48 -
orxonox/trunk/src/importer/framework.cc
r3204 r3205 51 51 int main(int argc, char *argv[]) 52 52 { 53 int verbose = 2;54 55 PRINTF( 1)("This is The big verbose-Test %i, %s\n", 1, "cool");53 int verbose = 3; 54 55 PRINTF(2)("This is The big verbose-Test %i, %s\n", 1, "cool"); 56 56 57 57 Uint8* keys; // This variable will be used in the keyboard routine
Note: See TracChangeset
for help on using the changeset viewer.