FB_OPTION_PRIVATE
- Source: https://www.freebasic.net/wiki/wikka.php?wakka=KeyPgDdfboptionprivate
- Last revised: 2024-04-28
Intrinsic define (macro value) set by the compiler
Syntax
` FB_OPTION_PRIVATE
`
Description
Indicates if by default Function's and Sub's have module scope or global scope when not explicitly specified with Private or Public.
The default scope specifier for functions and subs is set by usage of the -lang command line option during compilation or usage of Option Private in the source file.
Default scope of procedures can be changed during compilation with #pragma private.
__FB_OPTION_PRIVATE__ returns zero (0) if the option has not been set. Returns non-zero (-1) if the option has been set.
Examples
start GeSHi
vb
#if( __FB_OPTION_PRIVATE__ <> 0 )
#error Option Private must Not be used With This module
#endifend GeSHi
Differences from QB
- New to FreeBASIC
See also
Option PrivatePrivatePublic
Back to DocToc