/*------------------------------------------------------------\ | | | Tool : systemcass | | | | File : assert.h | | | | Author : Buchmann Richard | | | | Date : 26_05_2005 | | | \------------------------------------------------------------*/ #ifndef __ASSERT_H__ #define __ASSERT_H__ #if defined(DEBUG) /////////// DEBUG #define ASSERT(x) { if (!(x)) { \ cerr << "ASSERT : " #x \ << " in function '" << __FUNCTION__ \ << "'\n"; exit (-1); \ } \ } #else /////////// _RELEASE (NOT DEBUG) #define ASSERT(x) #endif #endif