tess
1.0.0
Performance-first tile and path simulation substrate
Toggle main menu visibility
Loading...
Searching...
No Matches
config.h
1
#pragma once
2
3
#if defined(TESS_HAS_EXCEPTIONS)
4
#error "TESS_HAS_EXCEPTIONS is derived from the compiler and cannot be set"
5
#endif
6
7
#if defined(_MSC_VER)
8
#if defined(_CPPUNWIND)
10
#define TESS_HAS_EXCEPTIONS 1
11
#else
13
#define TESS_HAS_EXCEPTIONS 0
14
#endif
15
#elif defined(__cpp_exceptions) || defined(__EXCEPTIONS)
17
#define TESS_HAS_EXCEPTIONS 1
18
#else
20
#define TESS_HAS_EXCEPTIONS 0
21
#endif
22
23
#if defined(_MSC_VER)
24
#if TESS_HAS_EXCEPTIONS
25
#pragma detect_mismatch("tess_exception_mode", "enabled")
26
#else
27
#pragma detect_mismatch("tess_exception_mode", "disabled")
28
#endif
29
#endif
30
31
namespace
tess {
32
34
inline
constexpr
bool
has_exceptions = TESS_HAS_EXCEPTIONS != 0;
35
36
}
// namespace tess
include
tess
core
config.h
Generated by
1.17.0