Skip to content

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

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft