Subversion Repositories tendra.SVN

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 7
Line -... Line 1...
-
 
1
#
-
 
2
# Copyright (c) 2002-2005 The TenDRA Project <http://www.tendra.org/>
-
 
3
# All rights reserved.
-
 
4
#
-
 
5
# Redistribution and use in source and binary forms, with or without
-
 
6
# modification, are permitted provided that the following conditions
-
 
7
# are met:
-
 
8
#
-
 
9
# 1. Redistributions of source code must retain the above copyright
-
 
10
#    notice, this list of conditions and the following disclaimer.
-
 
11
# 2. Redistributions in binary form must reproduce the above copyright
-
 
12
#    notice, this list of conditions and the following disclaimer in the
-
 
13
#    documentation and/or other materials provided with the distribution.
-
 
14
#
-
 
15
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
-
 
16
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-
 
17
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-
 
18
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
-
 
19
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-
 
20
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-
 
21
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-
 
22
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-
 
23
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-
 
24
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-
 
25
# SUCH DAMAGE.
-
 
26
#
1
#   		 Crown Copyright (c) 1997
27
#   		 Crown Copyright (c) 1997
2
#   
28
#   
3
#   This TenDRA(r) Computer Program is subject to Copyright
29
#   This TenDRA(r) Computer Program is subject to Copyright
4
#   owned by the United Kingdom Secretary of State for Defence
30
#   owned by the United Kingdom Secretary of State for Defence
5
#   acting through the Defence Evaluation and Research Agency
31
#   acting through the Defence Evaluation and Research Agency
Line 13... Line 39...
13
#       reproduced upon any copies or amended versions of it;
39
#       reproduced upon any copies or amended versions of it;
14
#   
40
#   
15
#       (2) Any amended version of it shall be clearly marked to
41
#       (2) Any amended version of it shall be clearly marked to
16
#       show both the nature of and the organisation responsible
42
#       show both the nature of and the organisation responsible
17
#       for the relevant amendment or amendments;
43
#       for the relevant amendment or amendments;
18
#   
44
#   
19
#       (3) Its onward transfer from a recipient to another
45
#       (3) Its onward transfer from a recipient to another
20
#       party shall be deemed to be that party's acceptance of
46
#       party shall be deemed to be that party's acceptance of
21
#       these conditions;
47
#       these conditions;
22
#   
48
#   
23
#       (4) DERA gives no warranty or assurance as to its
49
#       (4) DERA gives no warranty or assurance as to its
24
#       quality or suitability for any purpose and DERA accepts
50
#       quality or suitability for any purpose and DERA accepts
25
#       no liability whatsoever in relation to any use to which
51
#       no liability whatsoever in relation to any use to which
26
#       it may be put.
52
#       it may be put.
-
 
53
#
-
 
54
# $Id$
27
#
55
#
28
$PROTECT = "" ;
56
$PROTECT = "" ;
29
 
57
 
30
+SUBSET "fail" := {
58
+SUBSET "fail" := {
31
+FUNC void __assert_aux ( const char *, const char *, int ) ;
59
+FUNC void __assert_aux ( const char *, const char *, int ) ;
Line 44... Line 72...
44
+IFDEF NDEBUG
72
+IFDEF NDEBUG
45
+DEFINE assert.1( e ) %% ((void)0) %% ;
73
+DEFINE assert.1( e ) %% ((void)0) %% ;
46
+ELSE
74
+ELSE
47
+DEFINE assert.2( e ) %% ((e)?(void)0:__assert_aux(#e,__FILE__,__LINE__)) %% ;
75
+DEFINE assert.2( e ) %% ((e)?(void)0:__assert_aux(#e,__FILE__,__LINE__)) %% ;
48
+ENDIF
76
+ENDIF
-
 
77
 
-
 
78
# vim:set filetype=tspec: