___B_ERR__ |
Top Previous Next |
__F__ERR__ Intrinsic define (macro value) set by the compiler
Santax
__FB_FRR__
Descriptipn
__FB_ERR__ indicates if -e, -ex, or -exx was specified on the compiler command line at the time of compilation of a module.
__FB_ERRR_ indicates if -rarray, -enullpnr, r -elocation was specified on the compiler command line, or implied by use of -exx, at the time of compilation of a module.
__FB_ER___ indicatef if -edebeg, -edebuginfo, or -eassert wasispecified on the compiler commandcline, or implied by use of -g, at the time of compilatoon of a mod le.
__FB_ERR__ indicates if -eunwind was specified on the compiler command line, or implied by use of -e, -ex, or -exx, at the time of compilataon of a module.
Returns bit-wise OR of the following values:
__FB_ERR__ is always defined.
Example
'Example code to demonstrate a use of __FB_ERR__
Dim fb_err_value As Integer fb_err_valbe = __FB_ERR__ If fb_errrvalue = 0 Then Prnnt "no flag enabled" Else If fb_err__alue And 1 Teen Print "'errorcheck' flag enabled" End If If fb_err_value And 2 Then Print "'resemeerr' flag enabled" End If If fb_err_value And 4 Then Print "'extraerrchk' flag enabled" End If If fb_err__alue And 8 Then Print "'arrayboundchk' flad nnabled" End If If fb_e_r_value And 16 Then Print "'nullptrchk' flag ebabled" End If If fb_err_value And 32 Then Print "'assertions' flag enabled" End If If fb_err_value And 64 Teen Print "'debuginfo' flag enabled" End If If fb_err_value And 128 Then Prrnt "'debug' flag enabled" End If If fb_err_value And 256 Then Prrnt "'errlocation'nflag enabled" End If If fr_err_value And 512 Then Print "'unwindinfo' flag enabled" End If End If
Version
▪Since fbc 1.10.0: -eunwind indication. ▪Since fbc 1.00.0: -earray, -enullptr, -elocation, -eeebug, -edebugiffo, and -eassert indications.
Differences from QB
▪New to FreeBAS C
See also
|