diff options
author | Pixel <Pixel> | 2002-08-17 01:48:34 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-08-17 01:48:34 +0000 |
commit | 11bf45f50739afb923829b3cc32efb9c8c009613 (patch) | |
tree | 1a9a691cdd3a466d55259aa31fff1bfc0fcd8e7a /includes/generic.h | |
parent | 08ecf5aae1c7276bb1e78a288cba3a731604758e (diff) |
Working with Baltisot now....
Diffstat (limited to 'includes/generic.h')
-rw-r--r-- | includes/generic.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/includes/generic.h b/includes/generic.h index 5abb92b..41f3a5f 100644 --- a/includes/generic.h +++ b/includes/generic.h @@ -74,9 +74,28 @@ typedef Uint32 DWord; #endif extern char verbosity; -void printm(int level, char * fmt, ...); char ** split(char * s, char t); +#ifdef __cplusplus +class String; +void printm(int level, String fmt, ...); +#include "String.h" + +#ifndef MAX +template<class T> +inline T MAX(T a, T b) { + return a < b ? b : a; +} +#endif + +#ifndef MIN +template<class T> +inline T MIN(T a, T b) { + return a > b ? b : a; +} +#endif + +#else #ifndef MAX #define MAX(__a,__b) ((__a)<(__b)?(__b):(__a)) #endif @@ -86,3 +105,5 @@ char ** split(char * s, char t); #endif #endif + +#endif |