Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
core.hpp File Reference

Macros

#define QUIRE_ENABLE_LITERALS   1
 BEHAVIORAL COMPILATION SWITCHES.
#define QUIRE_THROW_ARITHMETIC_EXCEPTION   0

Macro Definition Documentation

◆ QUIRE_ENABLE_LITERALS

#define QUIRE_ENABLE_LITERALS   1

BEHAVIORAL COMPILATION SWITCHES.

These live HERE, not only in the umbrella, because core.hpp is a public entry point: quire_impl.hpp tests them in #if directives, so a translation unit that includes only core.hpp would otherwise leave them undefined. That still evaluates to 0 – the intended default – but it is a diagnostic under -Wundef and it makes the core's configuration depend on an include the caller was told they do not need (#1334). The umbrella's own #if !defined guards make this a no-op when both are included.

◆ QUIRE_THROW_ARITHMETIC_EXCEPTION

#define QUIRE_THROW_ARITHMETIC_EXCEPTION   0