repr 0.1
Reconstructable string representations and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages Concepts
format.h
Go to the documentation of this file.
#pragma once
#include "util.h"
#ifndef REPR_FORMAT_FMT
#define REPR_FORMAT_FMT OFF
#endif
#if !__has_include(<format>) || __has_include(<fmt/format.h>)
#undef REPR_FORMAT_FMT
#define REPR_FORMAT_FMT ON
#endif
#if USING(REPR_FORMAT_FMT)
#include <fmt/format.h>
#define REPR_FORMAT_RNS fmt
#else
#include <format>
#define REPR_FORMAT_RNS std
#endif
#define REPR_FORMAT_NS ::REPR_FORMAT_RNS
#define REPR_FORMAT(...) ::REPR_FORMAT_RNS::format(__VA_ARGS__)