Last change
on this file since 14 was
1,
checked in by buchmann, 17 years ago
|
Initial import from CVS repository
|
File size:
1.1 KB
|
Line | |
---|
1 | /*------------------------------------------------------------\ |
---|
2 | | | |
---|
3 | | Tool : systemcass | |
---|
4 | | | |
---|
5 | | File : assert.h | |
---|
6 | | | |
---|
7 | | Author : Buchmann Richard | |
---|
8 | | | |
---|
9 | | Date : 26_05_2005 | |
---|
10 | | | |
---|
11 | \------------------------------------------------------------*/ |
---|
12 | #ifndef __ASSERT_H__ |
---|
13 | #define __ASSERT_H__ |
---|
14 | |
---|
15 | #if defined(DEBUG) |
---|
16 | /////////// DEBUG |
---|
17 | #define ASSERT(x) { if (!(x)) { \ |
---|
18 | cerr << "ASSERT : " #x \ |
---|
19 | << " in function '" << __FUNCTION__ \ |
---|
20 | << "'\n"; exit (-1); \ |
---|
21 | } \ |
---|
22 | } |
---|
23 | |
---|
24 | #else |
---|
25 | /////////// _RELEASE (NOT DEBUG) |
---|
26 | #define ASSERT(x) |
---|
27 | |
---|
28 | #endif |
---|
29 | #endif |
---|
30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.