Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 7u83 1
/*
2
    		 Crown Copyright (c) 1997
3
 
4
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
12
 
13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
15
 
16
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
19
 
20
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
22
        these conditions;
23
 
24
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
27
        it may be put.
28
*/
29
 
30
 
31
#ifndef THROW_INCLUDED
32
#define THROW_INCLUDED
33
 
34
 
35
/*
36
    EXCEPTION HANDLING TOKEN INTERFACE
37
 
38
    The following tokens give the interface between the compiler and the
39
    exception handling routines.
40
*/
41
 
42
#pragma token PROC ( EXP : void * :, EXP : TYPE_INFO * :, EXP : DESTRUCTOR : )\
43
    EXP : void : throw_exception # ~cpp.except.throw
44
#pragma token PROC () EXP : void : rethrow_exception # ~cpp.except.rethrow
45
#pragma token PROC ( EXP : TYPE_INFO * : )\
46
    EXP : int : catch_exception # ~cpp.except.catch
47
 
48
#pragma token PROC ( EXP : size_t : )\
49
    EXP : void * : alloc_exception # ~cpp.except.alloc
50
 
51
#pragma token EXP : void * : value_exception # ~cpp.except.value
52
#pragma token PROC () EXP : void : caught_exception # ~cpp.except.caught
53
#pragma token PROC () EXP : void : end_exception # ~cpp.except.end
54
#pragma token PROC ( INTEGER ) EXP : void : ill_exception # ~cpp.except.bad
55
 
56
#pragma token TYPE exception_type # ~cpp.try.type
57
 
58
#pragma token PROC ( EXP : JUMP_BUFFER * :, EXP : FRAME_PTR :,\
59
    EXP : CODE_PTR : ) STATEMENT try_begin # ~cpp.try.begin
60
#pragma token PROC ( EXP : JUMP_BUFFER * : ) STATEMENT try_end # ~cpp.try.end
61
 
62
#pragma define throw_exception catch_exception
63
#pragma define value_exception caught_exception end_exception ill_exception
64
#pragma define exception_type try_begin try_end
65
 
66
 
67
#endif