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_60891

Description

Add -D option to the BASIC command to compile programs with a compiler directive


Previous Release Behavior

The jcompile -D option was not recognized by the BASIC command.


Current Release Behavior

The -D option can now be used with the BASIC command giving the same functionality as with the jcompile command.

For example, given the following program:

PROGRAM test_compiler_directive
#ifdef DEBUG_BUILD
    CRT 'This is a debug build'
#endif

If the program is compiled as:

BASIC bp test_compiler_directive.b
CATALOG bp test_compiler_directive

there would be no output.

Compiling this with the -D option:

BASIC -DDEBUG_BUILD test_compiler_directive.b
CATALOG bp test_compiler_directive

the output would be This is a debug build.

Was this article helpful?