xHarbour Reference Documentation > Preprocessor Reference xHarbour Developers Network  

#stdout

Sends a compiler message to StdOut.

Syntax

#stdout [<infoMessage>]

Arguments

<infoMessage>
This is a literal text string to send to the standard output device. If no text is specified, an empty line is output.

Description

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.

Info

See also:#error
Category: Preprocessor directives

Example

// 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

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe