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