Skip to main content

errflag

Static errflag 

Source
pub static errflag: AtomicI32
Expand description

Port of int errflag from Src/init.c. Tracks whether an error has been raised (ERRFLAG_ERROR = 1) or break/return is in flight (ERRFLAG_INT = 2).

Direct global access: errflag.load(Ordering::Relaxed) reads the current value, errflag.fetch_or(ERRFLAG_ERROR, …) matches C’s errflag |= ERRFLAG_ERROR, errflag.store(0, …) matches C’s errflag = 0.