From 11bf45f50739afb923829b3cc32efb9c8c009613 Mon Sep 17 00:00:00 2001 From: Pixel Date: Sat, 17 Aug 2002 01:48:34 +0000 Subject: Working with Baltisot now.... --- includes/generic.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'includes/generic.h') 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 +inline T MAX(T a, T b) { + return a < b ? b : a; +} +#endif + +#ifndef MIN +template +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 -- cgit v1.2.3