File : a-except-zfp.ads
1 ------------------------------------------------------------------------------
2 -- --
3 -- GNAT RUN-TIME COMPONENTS --
4 -- --
5 -- A D A . E X C E P T I O N S --
6 -- (Version for No Exception Handlers/No_Exception_Propagation) --
7 -- --
8 -- S p e c --
9 -- --
10 -- Copyright (C) 1992-2014, Free Software Foundation, Inc. --
11 -- --
12 -- This specification is derived from the Ada Reference Manual for use with --
13 -- GNAT. The copyright notice above, and the license provisions that follow --
14 -- apply solely to the contents of the part following the private keyword. --
15 -- --
16 -- GNAT is free software; you can redistribute it and/or modify it under --
17 -- terms of the GNU General Public License as published by the Free Soft- --
18 -- ware Foundation; either version 3, or (at your option) any later ver- --
19 -- sion. GNAT is distributed in the hope that it will be useful, but WITH- --
20 -- OUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY --
21 -- or FITNESS FOR A PARTICULAR PURPOSE. --
22 -- --
23 -- --
24 -- --
25 -- --
26 -- --
27 -- You should have received a copy of the GNU General Public License and --
28 -- a copy of the GCC Runtime Library Exception along with this program; --
29 -- see the files COPYING3 and COPYING.RUNTIME respectively. If not, see --
30 -- <http://www.gnu.org/licenses/>. --
31 -- --
32 -- GNAT was originally developed by the GNAT team at New York University. --
33 -- Extensive contributions were provided by Ada Core Technologies Inc. --
34 -- --
35 ------------------------------------------------------------------------------
36
37 -- Version is for use when there are no handlers in the partition (i.e. either
38 -- of Restriction No_Exception_Handlers or No_Exception_Propagation is set).
39
40 with System;
41
42 package Ada.Exceptions is
43 pragma Preelaborate;
44 -- In accordance with Ada 2005 AI-362
45
46 type Exception_Id is private;
47 pragma Preelaborable_Initialization (Exception_Id);
48
49 Null_Id : constant Exception_Id;
50
51 procedure Raise_Exception (E : Exception_Id; Message : String := "");
52 pragma No_Return (Raise_Exception);
53 -- Unconditionally call __gnat_last_chance_handler. Message should be a
54 -- null terminated string. Note that the exception is still raised even
55 -- if E is the null exception id. This is a deliberate simplification for
56 -- this profile (the use of Raise_Exception with a null id is very rare in
57 -- any case, and this way we avoid introducing Raise_Exception_Always and
58 -- we also avoid the if test in Raise_Exception).
59
60 private
61
62 ------------------
63 -- Exception_Id --
64 ------------------
65
66 type Exception_Id is access all System.Address;
67 Null_Id : constant Exception_Id := null;
68
69 pragma Inline_Always (Raise_Exception);
70
71 end Ada.Exceptions;