microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Macros
compat.hpp File Reference

Compiler, language-version, and optional-library feature detection. More...

#include "../microfmt_config.hpp"
#include <reloco/detail/compat.hpp>
Include dependency graph for compat.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MICROFMT_HAS_STD_SOURCE_LOCATION   0
 
#define MICROFMT_HAS_STD_EXPECTED   0
 
#define MICROFMT_HAS_BOOST_SOURCE_LOCATION   0
 
#define MICROFMT_HAS_SOURCE_LOCATION   0
 
#define MICROFMT_HAS_BOOST_UUID   0
 
#define MICROFMT_HAS_POSIX_FD   0
 
#define MICROFMT_HAS_ANDROID_LOG   0
 
#define MICROFMT_API   inline
 
#define MICROFMT_SHARED_PROVIDE_DEFINITIONS   1
 
#define MICROFMT_API_CONSTEXPR   constexpr MICROFMT_API
 
#define MICROFMT_API_CLASS
 
#define MICROFMT_HAS_DLOG   1
 

Detailed Description

Compiler, language-version, and optional-library feature detection.

Core compiler/language feature-detection macros (RELOCO_CXX17, RELOCO_HAS_STD_SPAN, RELOCO_NODISCARD, RELOCO_TRAP, ...) are defined by reloco (see <reloco/detail/compat.hpp>) and used directly; this header only adds microfmt-specific feature detection reloco has no need for (source_location, std::expected, Boost UUID, POSIX fd, Android log).

Macro Definition Documentation

◆ MICROFMT_API

#define MICROFMT_API   inline

◆ MICROFMT_API_CLASS

#define MICROFMT_API_CLASS

◆ MICROFMT_API_CONSTEXPR

#define MICROFMT_API_CONSTEXPR   constexpr MICROFMT_API

◆ MICROFMT_HAS_ANDROID_LOG

#define MICROFMT_HAS_ANDROID_LOG   0

◆ MICROFMT_HAS_BOOST_SOURCE_LOCATION

#define MICROFMT_HAS_BOOST_SOURCE_LOCATION   0

◆ MICROFMT_HAS_BOOST_UUID

#define MICROFMT_HAS_BOOST_UUID   0

◆ MICROFMT_HAS_DLOG

#define MICROFMT_HAS_DLOG   1

◆ MICROFMT_HAS_POSIX_FD

#define MICROFMT_HAS_POSIX_FD   0

◆ MICROFMT_HAS_SOURCE_LOCATION

#define MICROFMT_HAS_SOURCE_LOCATION   0

◆ MICROFMT_HAS_STD_EXPECTED

#define MICROFMT_HAS_STD_EXPECTED   0

◆ MICROFMT_HAS_STD_SOURCE_LOCATION

#define MICROFMT_HAS_STD_SOURCE_LOCATION   0

◆ MICROFMT_SHARED_PROVIDE_DEFINITIONS

#define MICROFMT_SHARED_PROVIDE_DEFINITIONS   1