Preprocessor macros for configuring library functionality. \detail Define these before including toml++ to alter the way it functions.
More...
Preprocessor macros for configuring library functionality. \detail Define these before including toml++ to alter the way it functions.
◆ TOML_ASSERT
#define TOML_ASSERT |
( |
|
expr | ) |
assert(expr) |
Sets the assert function used by the library. \detail Defaults to the standard C assert()
.
◆ TOML_ASSERT_ASSUME
◆ TOML_CALLCONV
Calling convention to apply to exported free/static functions. \detail Not defined by default (let the compiler decide).
◆ TOML_ENABLE_FLOAT16
#define TOML_ENABLE_FLOAT16 0 |
Enable support for the built-in _Float16
type. \detail Defaults to 0
.
◆ TOML_ENABLE_FORMATTERS
#define TOML_ENABLE_FORMATTERS 1 |
Sets whether the various formatter classes are enabled. \detail Defaults to 1
.
- See also
- toml::toml_formatter
- toml::json_formatter
- toml::yaml_formatter
◆ TOML_ENABLE_PARSER
#define TOML_ENABLE_PARSER 1 |
Sets whether the parser-related parts of the library are included. \detail Defaults to 1
.
◆ TOML_ENABLE_SIMD
#define TOML_ENABLE_SIMD 1 |
◆ TOML_ENABLE_UNRELEASED_FEATURES
#define TOML_ENABLE_UNRELEASED_FEATURES 0 |
◆ TOML_ENABLE_WINDOWS_COMPAT
#define TOML_ENABLE_WINDOWS_COMPAT 1 |
Enables the use of wide strings (wchar_t, std::wstring) in various places throughout the library when building for Windows. \detail Defaults to 1
when building for Windows, 0
otherwise. Has no effect when building for anything other than Windows.
◆ TOML_EXCEPTIONS
#define TOML_EXCEPTIONS 0 |
Sets whether the library uses exceptions to report parsing failures. \detail Defaults to 1
or 0
according to your compiler's exception mode.
◆ TOML_EXPORTED_CLASS
#define TOML_EXPORTED_CLASS |
An 'export' annotation to add to classes. \detail Not defined by default.
◆ TOML_EXPORTED_FREE_FUNCTION
#define TOML_EXPORTED_FREE_FUNCTION |
An 'export' annotation to add to free functions. \detail Not defined by default.
◆ TOML_EXPORTED_MEMBER_FUNCTION
#define TOML_EXPORTED_MEMBER_FUNCTION |
An 'export' annotation to add to non-static class member functions. \detail Not defined by default.
◆ TOML_EXPORTED_STATIC_FUNCTION
#define TOML_EXPORTED_STATIC_FUNCTION |
An 'export' annotation to add to static
class member functions. \detail Not defined by default.
◆ TOML_HAS_CUSTOM_OPTIONAL_TYPE
#define TOML_HAS_CUSTOM_OPTIONAL_TYPE 0 |
◆ TOML_HEADER_ONLY
#define TOML_HEADER_ONLY 1 |
Sets whether the library is entirely inline. \detail Defaults to 1
.
// some_code_file.cpp #define TOML_IMPLEMENTATION #include "global_header_that_includes_toml++.h" \ecpp
◆ TOML_IMPLEMENTATION
#define TOML_IMPLEMENTATION 1 |
◆ TOML_INCLUDE_WINDOWS_H
#define TOML_INCLUDE_WINDOWS_H 0 |
◆ TOML_LIFETIME_HOOKS
#define TOML_LIFETIME_HOOKS 0 |
◆ TOML_MAX_NESTED_VALUES
#define TOML_MAX_NESTED_VALUES 256 |
◆ TOML_SHARED_LIB
#define TOML_SHARED_LIB 0 |
◆ TOML_UNDEF_MACROS
#define TOML_UNDEF_MACROS 1 |
◆ TOML_DISABLE_WARNINGS
◆ TOML_ENABLE_WARNINGS