Changeset 3530 in orxonox.OLD for orxonox/branches/levelloader/src/defs
- Timestamp:
- Mar 13, 2005, 10:40:25 PM (20 years ago)
- Location:
- orxonox/branches/levelloader/src/defs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/defs/debug.h
r3499 r3530 22 22 #define _DEBUG_H 23 23 24 #if HAVE_CONFIG_H 25 #include <config.h> 26 #endif 27 28 #include <stdio.h> 29 24 30 #define NO 0 25 31 #define ERR 1 … … 28 34 #define DEBUGING 4 29 35 30 #if HAVE_CONFIG_H31 #include <config.h>32 #endif33 34 #include <stdio.h>35 36 36 /////////////////////////////////////////////////// 37 37 /// PRINTF: prints with filename and linenumber /// 38 38 /////////////////////////////////////////////////// 39 40 39 #ifdef DEBUG 41 40 extern int verbose; 42 41 #define PRINTF(x) \ 43 42 PRINTF ## x 44 43 45 44 #if DEBUG >= ERR 46 45 #define PRINTF1 \ … … 92 91 #define PRINT(x) \ 93 92 PRINT ## x 94 93 95 94 #if DEBUG >= ERR 96 95 #define PRINT1 \ -
orxonox/branches/levelloader/src/defs/error.h
r3499 r3530 23 23 24 24 25 #ifndef _ ERROR_H26 #define _ ERROR_H25 #ifndef _ORX_ERROR_H 26 #define _ORX_ERROR_H 27 27 28 28 // these are the two undefined error nr. Don't use them ... … … 54 54 */ 55 55 56 typedef struct 56 typedef struct ErrorMessage 57 57 { 58 58 int code; -
orxonox/branches/levelloader/src/defs/stdincl.h
r3525 r3530 8 8 #ifndef _STDINCL_H 9 9 #define _STDINCL_H 10 10 11 11 #define null 0 //!< null 12 12 … … 22 22 #endif 23 23 24 #include <assert.h> 24 25 #include <stdlib.h> 25 26 #include <string.h> … … 27 28 #include "glincl.h" 28 29 30 #include "error.h" 31 #include "debug.h" 29 32 30 33 // MATH // … … 41 44 #include "factory.h" 42 45 43 #include "error.h" 44 #include "debug.h" 46 #define CREATE_FACTORY(x) \ 47 class x ## Factory : public Factory { \ 48 public: \ 49 x ## Factory (){setNext( NULL); setClassname( #x ); initialize();} \ 50 ~x ## Factory () {}; \ 51 private: \ 52 BaseObject* fabricate( TiXmlElement* root) \ 53 { \ 54 if(!strcmp(root->Value(), getClassname())) return new x ( root); \ 55 else if( getNext() != NULL) return getNext()->fabricate( root); \ 56 else return NULL; \ 57 } \ 58 }; \ 59 x ## Factory global_ ## x ## Factory; 45 60 46 61 #endif /* _STDINCL_H */
Note: See TracChangeset
for help on using the changeset viewer.