#pragma checkout

Category

Listings, messages and compiler information

Purpose

Controls the diagnostic messages that are generated by the compiler.

You can suspend the diagnostics that the INFO or CHECKOUT compiler options perform during specific portions of your program. You can then resume the same level of diagnostics later in the file. C++ only. You can use this pragma directive in place of the INFO option or #pragma info directive. C++ only.

Syntax

C only.
Read syntax diagramSkip visual syntax diagram
>>-#--pragma--checkout--(--+-resume--+--)----------------------><
                           '-suspend-'      

C only.
C++ only.
Read syntax diagramSkip visual syntax diagram
                             .- ,--------.        
                             V           |        
>>-#--pragma--checkout--(--+---suboption-+-+--)----------------><
                           +-resume--------+      
                           '-suspend-------'      

C++ only.

Defaults

See the INFO and CHECKOUT options in the z/OS® XL C/C++ User's Guide.

Parameters

C++ only. suboption
Any suboption supported by the INFO compiler option. For details, see the INFO option in the z/OS XL C/C++ User's Guide. C++ only.
suspend
Instructs the compiler to suspend all diagnostic operations for the code following the directive.
resume
Instructs the compiler to resume all diagnostic operations for the code following the directive.

Usage

This pragma can appear anywhere that a preprocessor directive is valid.

Related information