Skip to main content

DPUTS1

Macro DPUTS1 

Source
macro_rules! DPUTS1 {
    ($x:expr, $y:expr, $z1:expr) => { ... };
}
Expand description

Port of #define DPUTS1(X, Y, Z1) macro from Src/zsh.h:2919 (macro).

C body (DEBUG defined):

# define DPUTS1(X,Y,Z1) if (!(X)) {;} else dputs(ERRMSG(Y), Z1)

One-arg printf-style variant — Y is a printf format string with one %-substitution, Z1 is the argument. The Rust port uses format! with {} placeholders; callers should write Rust-style format strings ("BUG: x = {}") instead of C printf strings ("BUG: x = %d").