Compiler Option: -d

FreeBASIC

Compiler Option: -d
 
Add a preprocessor definition

Syntax

-d < name=value >
-d < name >

Parameters

name
Name of the preprocessor macro to define. No parameters are allowed.
value
Value to give to the macro. If omitted, it will be defined as 1

Description

The -d compiler option adds a preprocessor macro to all source files. The same as using the preprocessor directive #define or #macro.

See also