Guidance
指路人
g.yi.org
software / RapidQ / RQ Doc / html / defs.html

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Appendix C: Rapid-Q definitions
Rapid-Q Documentation by William Yu (c)1999 Appendix C: Rapid-Q definitions


Internal Definitions

Rapid-Q has these variables already defined:
    $DEFINE WIN32 WIN32
    $DEFINE UNIX  UNIX
    $DEFINE TYPE  STRUCT
WIN32 is defined if you're using the Windows version of Rapid-Q
UNIX is defined if you're using the Linux/Unix version of Rapid-Q
TYPE is defined to replace the old style TYPE


Unhooking definitions
The term "unhooking" just means undefining a definition, ie:
    $UNDEF TYPE
This is the only definition (at this time) that can affect your program when unhooked. See the section on "User Defined Types" for more information.

Using definitions
Chapter 3 lists some examples on using $IFDEF and $IFNDEF:
    $IFDEF WIN32
         PRINT "I'm using the Windows version!"
    $ELSE
         PRINT "I'm using the Linux/Unix version!"
    $ENDIF



<- Operators Contents Data Types ->
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Wed 2017-11-22  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2015-12-25 19:42:24