This will bring you back to the SFS Software frontpage.
iavaDraw - development platform for Java and JavaBeans.
Order area for iavaDraw and iavaZIP.
Direct Contact to SFS Software.

 

PREPROCESSOR | #INCLUDE DIRECTIVE

DESCRIPTION:

This directive lets you include an *.ins file in to your java-source code.

SYNTAX:

#include myfile.ins

PREPROCESSOR | #DEFINE DIRECTIVE

DESCRIPTION:

The #define directive assigns the given value to the specified name. All subsequent occurrences of the name are replaced by the value.

SYNTAX:

#define name value

PARAMETERS

name
Specifies the name to be defined. This value is any combination of letters, digits and punctuation.

value
Specifies any integer, character string, or line of text.

Example:

This example assigns values to the names "NONZERO" and "USERCLASS":

#define NONZERO 1
#define USERCLASS "MyControlClass"

PREPROCESSOR | #UNDEF DIRECTIVE

DESCRIPTION:

The #undef directive removes the current definition of the specified name. All subsequent occurrences of the name are processed without replacement.

SYNTAX

#undef name

Parameter

name
Specifies the name to be removed. This value is any combination of letters, digits, and punctuation.

Example
This example removes the definitions for the names "nonzero" and "USERCLASS":

#undef nonzero#undef USERCLASS

PREPROCESSOR | #IFDEF DIRECTIVE

DESCRIPTION:

The #ifdef directive controls conditional compilation of the resource file by checking the specified name. If the name has been defined by using a #define directive, #ifdef directs the compiler to continue with the statement immediately after the #ifdef directive. If the name has not been defined, #ifdef directs the compiler to skip all statements up to the next #endif directive.

SYNTAX

#ifdef name

PARAMETER

name
Specifies the name to be checked by the directive.

Example
This example compiles the BITMAP statement only if the name "Debug" is defined:

#ifdef DebugBITMAP 1 errbox.bmp#endif

PREPROCESSOR | #IFNDEF DIRECTIVE

DESCRIPTION:

The #ifndef directive controls conditional compilation of the resource file by checking the specified name. If the name has not been defined or if its definition has been removed by using the #undef directive, #ifndef directs the compiler to continue processing statements up to the next #endif directive and then skip to the statement after the #endif directive. If the name is defined, #ifndef directs the compiler to skip to the next #endif directive.

SYNTAX

#ifndef name

PARAMETER

name
Specifies the name to be checked by the directive.

Example:
This example compiles the BITMAP statement only if the name "Optimize" is not defined:

#ifndef OptimizeBITMAP 1 errbox.bmp#endif

PREPROCESSOR | #ENDIF DIRECTIVE

DESCRIPTION:

The #endif directive marks the end of a conditional-compilation block defined by a #ifdef directive. One #endif is required for each #ifdef, or #ifndef directive.

SYNTAX

#endif

This directive has no arguments.

PREPROCESSOR | #ERROR DIRECTIVE

DESCRIPTION:

PREPROCESSOR | #DEBUG DIRECTIVE

DESCRIPTION:

The #debug directive prints out a debug message, if the _debug is defined. Otherwise it will not be parsed by the compiler.

SYNTAX

#define _debug #debug
#debug text...
#debug "var" (
#debug "var var"
#debug text... "..." text...

Example:

#define _debug
for (int i=0; i< 20; i++)
{
#debug Position = "i"
}

PREPROCESSOR | #WARNING DIRECTIVE

DESCRIPTION:

The #warning directive prints out a preprocessor warning.

SYNTAX

#warning message

PREPROCESSOR | #MAKE & ENDMAKE DIRECTIVE

DESCRIPTION:

The #make & #endmake directives lets you insert dos batch commands, right in your source-code.

SYNTAX

#make
batch commands
#endmake

PREPROCESSOR | #COMPILE DIRECTIVE

DESCRIPTION:

Compiles file, where the #compile directive is stated .

 

[Home | News | Future views | iavaDraw | iavaZIP | Information | Purchase license | Download | Contact | Consulting | WebService | About | Business | Press releases ]
Copyright © 1997 SFS Software GbR - All rights reserved.