Package: Ada.Assertions

Dependencies

pragma License (Unrestricted);

Description

AI- 286

Can't be Pure in Ada95 as to implement the second subprogram we need Ada.Exceptions as there is no raise .. with statement.

pragma Pure (Ada.Assertions);

Header

package Ada.Assertions is
 

Exceptions

Assertion_Error

Other Items:

procedure Assert (Check : in Boolean);
If Check is False the exception Assertion_Error is raised.

procedure Assert (Check   : in Boolean;
                  Message : in String);
If Check is False the exception Assertion_Error is raised with the given message.
end Ada.Assertions;