Next: , Previous: Pragma CPP_Vtable, Up: Implementation Defined Pragmas


Pragma Debug

Syntax:

     pragma Debug (PROCEDURE_CALL_WITHOUT_SEMICOLON);
     
     PROCEDURE_CALL_WITHOUT_SEMICOLON ::=
       PROCEDURE_NAME
     | PROCEDURE_PREFIX ACTUAL_PARAMETER_PART

The argument has the syntactic form of an expression, meeting the syntactic requirements for pragmas.

If assertions are not enabled on the command line, this pragma has no effect. If asserts are enabled, the semantics of the pragma is exactly equivalent to the procedure call statement corresponding to the argument with a terminating semicolon. Pragmas are permitted in sequences of declarations, so you can use pragma Debug to intersperse calls to debug procedures in the middle of declarations.