Skip to content

IOFMT

IOFMT

Description

Type-aware format specifier generator

Parameters

Name Direction Description
x in Value to format

Success

Returns TypeSpecificIO for supported types

Failure

Returns unsupported type handler for unknown types

Usage example (Cross-references)

Usage examples (Cross-references)
    
    #if defined(_MSC_VER) || defined(__MSC_VER)
    #    define IOFMT(x)                                                                                                   \
            _Generic(                                                                                                      \
                (x),                                                                                                       \
    /// Used in following macros
    ///
    #define IOFMT_LVAL_APPEND_COMMA(x) IOFMT(LVAL(x)),
    #define IOFMT_APPEND_COMMA(x)      IOFMT(x),
    ///
    #define IOFMT_LVAL_APPEND_COMMA(x) IOFMT(LVAL(x)),
    #define IOFMT_APPEND_COMMA(x)      IOFMT(x),
    
    ///
Last updated on