Extension API Informational Variables (The GNU Awk User’s Guide)
From Get docs
Gawk/docs/latest/Extension-API-Informational-Variables
Previous: Extension GMP/MPFR Versioning, Up: Extension API Variables [Contents][Index]
17.4.13.3 Informational Variables
The API provides access to several variables that describe whether the corresponding command-line options were enabled when gawk was invoked. The variables are:
do_debug- This variable is true if
gawkwas invoked with--debugoption. do_lint- This variable is true if
gawkwas invoked with--lintoption. do_mpfr- This variable is true if
gawkwas invoked with--bignumoption. do_profile- This variable is true if
gawkwas invoked with--profileoption. do_sandbox- This variable is true if
gawkwas invoked with--sandboxoption. do_traditional- This variable is true if
gawkwas invoked with--traditionaloption.
The value of do_lint can change if awk code modifies the LINT predefined variable (see section Predefined Variables). The others should not change during execution.