From da9860f9a414d8ab403496ac74a51afc5ad3e48b Mon Sep 17 00:00:00 2001 From: sicarius Date: Sun, 18 Feb 2007 17:57:03 +0000 Subject: +++ Additional Codework --- source/Concept/Framework/tools.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source/Concept/Framework/tools.h') diff --git a/source/Concept/Framework/tools.h b/source/Concept/Framework/tools.h index 0ca4dda..ca19993 100644 --- a/source/Concept/Framework/tools.h +++ b/source/Concept/Framework/tools.h @@ -9,6 +9,10 @@ void operator delete(void* p); #endif +#define max(a, b) (((a) > (b)) ? (a) : (b)) +#define min(a, b) (((a) < (b)) ? (a) : (b)) +#define sign(a) (((a) < 0) ? (-1) : (1)) + inline void sleep(int sec) { for (int s=0; s