OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [ada/] [a-assert.ads] - Blame information for rev 839

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 706 jeremybenn
------------------------------------------------------------------------------
2
--                                                                          --
3
--                         GNAT RUN-TIME COMPONENTS                         --
4
--                                                                          --
5
--                       A D A . A S S E R T I O N S                        --
6
--                                                                          --
7
--                                 S p e c                                  --
8
--                                                                          --
9
-- This specification is derived from the Ada Reference Manual for use with --
10
-- GNAT.  In accordance with the copyright of that document, you can freely --
11
-- copy and modify this specification,  provided that if you redistribute a --
12
-- modified version,  any changes that you have made are clearly indicated. --
13
--                                                                          --
14
------------------------------------------------------------------------------
15
 
16
--  We do a with of System.Assertions to get hold of the exception (following
17
--  the specific RM permission that lets' Assertion_Error being a renaming).
18
--  The suppression of Warnings stops the warning about bad categorization.
19
 
20
pragma Warnings (Off);
21
with System.Assertions;
22
pragma Warnings (On);
23
 
24
package Ada.Assertions is
25
   pragma Pure (Assertions);
26
 
27
   Assertion_Error : exception renames System.Assertions.Assert_Failure;
28
   --  This is the renaming that is allowed by 11.4.2(24). Note that the
29
   --  Exception_Name will refer to the one in System.Assertions (see
30
   --  AARM-11.4.1(12.b)).
31
 
32
   procedure Assert (Check : Boolean);
33
 
34
   procedure Assert (Check : Boolean; Message : String);
35
 
36
end Ada.Assertions;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.