ILE C/C++ Compiler Reference


comment

>>-#--pragma--comment------------------------------------------->
 
>--(--+-+-compiler--+--------------------------+--)------------><
      | +-date------+                          |
      | '-timestamp-'                          |
      '-+-copyright-+--+---------------------+-'
        '-user------'  '-,--"--characters--"-'
 
 

Description

Emits a comment into the program or service program object. This can be shown by DSPPGM or DSPSRVPGM with DETAIL(*COPYRIGHT). This pragma must appear before any C code or directive (except for the #line directive) in a source file.

Parameters

Valid settings for the comment pragma can be:

compiler
The name and version of the compiler is emitted into the end of the generated program object.

date
The date and time of compilation is emitted into the end of the generated program object.

timestamp
The last modification date and time of the source is emitted into the end of the generated program object.

copyright
The text that is specified by characters is placed by the compiler into the generated program object and is loaded into memory when the program is run.

user
The text specified by characters is placed by the compiler into the generated object. However, it is not loaded into memory when the program is run.

Notes on Usage

The copyright and user comment types are virtually the same for the ILE C/C++ compiler. One has no advantage over the other.

The maximum number of characters in the text portion of a #pragma comment(copyright) or #pragma comment(user) directive is 256.

The maximum number of #pragma comment directives that can appear in a single compilation unit is 1024.


[ Top of Page | Previous Page | Next Page | Table of Contents ]