qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
message
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Pragma:   message
 
  Syntax:   #pragma message( messagestring )
 
  Summary:  Sends a message to the standard output without terminating
            the compilation.
 
     The message pragma sends a string to the standard output.
 
     The <messagestring> parameter is a string literal containing the
     message that you wish to send to the standard output device.
 
     This pragma does not cause termination of the compilation. A
     typical use of the message pragma is to display informational
     messages at compile time.
 
     The following code fragment uses the message pragma to display a
     message during compilation:
 
          #if M_I86MM
              #pragma message( "Medium memory model" )
          #endif
 
     The <messagestring> parameter can be a macro that expands to a
     string literal, and you can concatenate such macros with string
     literals in any combination. For example, the following statements
     display the name of the file being compiled and the date and time
     when the file was last modified:
 
          #pragma message( "Compiling " __FILE__ )
          #pragma message( "Last modified on " __TIMESTAMP__ )
                                    -♦-