Skip to content

Stringification signature macros

include/stringify.h View source View on GitHub
#define STRINGIFY_DECLARE_2(fn_name, in_type)
source
Expansion
#define STRINGIFY_DECLARE_2(fn_name, in_type) \
    static inline const char *fn_name(in_type stringify_in)
#define STRINGIFY_DECLARE_1(type)
source
Expansion
#define STRINGIFY_DECLARE_1(type) STRINGIFY_DECLARE_2(type##_to_str, type)
#define STRINGIFY_DECLARE(...)
source
Expansion
#define STRINGIFY_DECLARE(...) PP_CALL(STRINGIFY_DECLARE, __VA_ARGS__)
#define STRINGIFY_DECLARE_ENUM(type)
source
Expansion
#define STRINGIFY_DECLARE_ENUM(type) \
    STRINGIFY_DECLARE_2(type##_to_str, enum type)