| xHarbour Reference Documentation > Preprocessor Reference |
![]() |
![]() |
![]() |
Sends a compiler message to StdOut.
#stdout [<infoMessage>]
The #stdout directive instructs the preprocessor to display the message text specified with <infoMessage>. The message text is output on Stdout so that it can be collected in a file.
| See also: | #error |
| Category: | Preprocessor directives |
// The example demonstrates the use of #stdout
#define DEMO_VERSION
PROCEDURE Main
#ifdef DEMO_VERSION // output at compile time
#stdout Creating the Demo version of the program
#else
#stdout This is the FULL version of the program
#endif
? "Hi there!" // output at run time
RETURN
http://www.xHarbour.com