Skip to content

Fb Out Obj

Paul Squires edited this page Sep 19, 2026 · 1 revision

Home › Intrinsic Defines › FB_OUT_OBJ

FB_OUT_OBJ

Intrinsic define (macro value) set by the compiler

Syntax

__FB_OUT_OBJ__

Description

__FB_OUT_OBJ__ indicates that the specified output file type on the compiler command line at the time of compilation is an object module.

Returns non-zero (-1) if the output is an object module. Returns zero (0) otherwise.

Only one of __FB_OUT_DLL__, __FB_OUT_EXE__, __FB_OUT_LIB__, or __FB_OUT_OBJ__, will evaluate to non-zero (-1). All others will evaluate to zero (0).

Remarks

Differences from QB

  • New to FreeBASIC

See also

Examples

#if __FB_OUT_OBJ__

        '... specific instructions when compiling to an object file only

#else

        '... specific instructions when not compiling to an object file only

#endif

Category: Intrinsic Defines
Kind: keyword


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally