Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

PN5_60604

Description

jBC: Allow compiler directives to be used as variables 


Previous Release Behavior

Using compiler directives as variables would not compile. For example: 

WINDOWS = 1
LINUX = 2
AIX = 3
SUN = 4
SOLARIS = SUN

None of those statements were valid, they could only be used with compiler directives, e.g. 

#ifdef WINDOWS


Current Release Behavior

The following is valid code: 

#ifdef WINDOWS
    PRINT "This is windows"
#endif
#ifdef LINUX
    PRINT "This is linux"
#endif
    WINDOWS = 1
    CRT "WINDOWS = ":WINDOWS
    LINUX = 2
    CRT "LINUX = ":LINUX

Was this article helpful?