FastLED 3.9.15
Loading...
Searching...
No Matches

◆ format_arg() [1/3]

void fl::printf_detail::format_arg ( StrStream & stream,
const FormatSpec & spec,
const char * arg )
inline

Definition at line 298 of file printf.h.

298 {
299 switch (spec.type) {
300 case 's':
301 stream << arg;
302 break;
303 case 'x':
304 stream << "<string_not_hex>";
305 break;
306 case 'd':
307 case 'i':
308 case 'u':
309 case 'f':
310 case 'c':
311 stream << "<type_error>";
312 break;
313 default:
314 stream << "<unknown_format>";
315 break;
316 }
317}

References fl::printf_detail::FormatSpec::type.