diff options
Diffstat (limited to 'contrib/bc/include/vm.h')
-rw-r--r-- | contrib/bc/include/vm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/bc/include/vm.h b/contrib/bc/include/vm.h index bbc5e57e2ac8..d6f698fb1e6d 100644 --- a/contrib/bc/include/vm.h +++ b/contrib/bc/include/vm.h @@ -176,6 +176,9 @@ /// The flag for reset on SIGINT. #define BC_FLAG_SIGINT (UINTMAX_C(1)<<12) +/// The flag for exiting with expressions. +#define BC_FLAG_EXPR_EXIT (UINTMAX_C(1)<<13) + /// A convenience macro for getting the TTYIN flag. #define BC_TTYIN (vm.flags & BC_FLAG_TTYIN) @@ -220,6 +223,9 @@ /// A convenience macro for getting the leading zero flag. #define BC_Z (vm.flags & BC_FLAG_Z) +/// A convenience macro for getting the expression exit flag. +#define BC_EXPR_EXIT (vm.flags & BC_FLAG_EXPR_EXIT) + #if BC_ENABLED /// A convenience macro for checking if bc is in POSIX mode. |