◄Up► ◄Contents► ◄Index► ◄Back► ─────C/C++ Language───────────────────────────────────────────────────────── 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 want 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__ ) -♦-