Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
include
AssertException.h
Go to the documentation of this file.
1
#ifndef __ASSERT_EXCEPTION__
2
#define __ASSERT_EXCEPTION__
3
4
// assertions based on exception handling
5
// similar to Stroustroup, "The C++ Programming Language" section 24.3.7.2
6
// the following usefull definition is ifdef'd out since the Sun compilers cannot understand it
7
#if 0
8
template
<
class
Except,
class
Arg>
9
inline
10
void
11
AssertException
(Arg assertion)
12
{
13
14
if
( !assertion )
throw
Except();
15
16
}
17
18
#endif
19
20
template
<
class
Except,
class
Arg>
21
inline
22
void
23
AssertException
(Arg assertion, Except exception)
24
{
25
26
if
( !assertion )
throw
exception;
27
28
}
29
30
#endif
Generated on Fri Jan 4 2013 10:17:48 for Overture by
1.8.3