Define macro for stream error args