1 ------------------------------------------------------------------------------
3 -- GNAT RUN-TIME COMPONENTS --
5 -- A D A . A S S E R T --
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. --
14 ------------------------------------------------------------------------------
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.
20 pragma Warnings (Off);
21 with System.Assertions;
24 package Ada.Assertions is
25 pragma Pure (Assertions);
27 Assertion_Error : exception renames System.Assertions.Assert_Failure;
29 procedure Assert (Check : Boolean);
31 procedure Assert (Check : Boolean; Message : String);