Configuration options module
Defines
- #define STIM_ASSERT(...)
- Debug assert macro used by the front-end of the library. May be overridden.
- #define STIM_FLOAT16_TYPE
- Set this if your codebase or environment has a 16-bit (half-precision) IEEE 754 floating point type.
- #define STIM_INJECT_MEMBERS_BOUNDING_BOX
- Define this if you wish to inject additional member functions into the body of stim::
bounding_box. - #define STIM_INJECT_MEMBERS_BOUNDING_SPHERE
- Define this if you wish to inject additional member functions into the body of stim::
bounding_sphere. - #define STIM_INJECT_MEMBERS_DURATION
- Define this if you wish to inject additional member functions into the body of stim::
duration. - #define STIM_INJECT_MEMBERS_MATRIX
- Define this if you wish to inject additional member functions into the body of stim::
matrix. - #define STIM_INJECT_MEMBERS_MESH_DESCRIPTION
- Define this if you wish to inject additional member functions into the body of stim::
mesh_description. - #define STIM_INJECT_MEMBERS_MESH_READER
- Define this if you wish to inject additional member functions into the body of stim::
mesh_reader. - #define STIM_INJECT_MEMBERS_PLANE
- Define this if you wish to inject additional member functions into the body of stim::
plane. - #define STIM_INJECT_MEMBERS_SPAN
- Define this if you wish to inject additional member functions into the body of stim::
span. - #define STIM_INJECT_MEMBERS_STRING_VIEW
- Define this if you wish to inject additional member functions into the body of stim::
string_view. - #define STIM_INJECT_MEMBERS_VECTOR
- Define this if you wish to inject additional member functions into the body of stim::
vector. - #define STIM_STD_CHRONO_COMPAT
- Enable this to allow the use of std::
chrono duration types in stim:: simulation:: update(). - #define STIM_STD_OSTREAM_COMPAT
- Enable this to allow stim::
string_view↔ std:: ostream printing operators. - #define STIM_STD_STRING_COMPAT
- Enable this to allow stim::
string_view↔ std:: string conversion constructors and operators. - #define STIM_STD_STRING_VIEW_COMPAT
- Enable this to allow stim::
string_view↔ std:: string_view conversion constructors and operators. - #define STIM_UE4_COMPAT
- Enable this to allow some stim ↔ UE4 type conversions and other simple interop.
Define documentation
#define STIM_ASSERT(...)
Debug assert macro used by the front-end of the library. May be overridden.
Default is to use the C standard library's assert()
, unless STIM_
#define STIM_FLOAT16_TYPE
Set this if your codebase or environment has a 16-bit (half-precision) IEEE 754 floating point type.
Default is undefined (no float16 support), unless STIM_
#define STIM_INJECT_MEMBERS_BOUNDING_BOX
Define this if you wish to inject additional member functions into the body of stim::
Default is undefined.
#define STIM_INJECT_MEMBERS_BOUNDING_SPHERE
Define this if you wish to inject additional member functions into the body of stim::
Default is undefined.
#define STIM_INJECT_MEMBERS_DURATION
Define this if you wish to inject additional member functions into the body of stim::
Default is undefined.
#define STIM_INJECT_MEMBERS_MATRIX
Define this if you wish to inject additional member functions into the body of stim::
Default is undefined.
#define STIM_INJECT_MEMBERS_MESH_DESCRIPTION
Define this if you wish to inject additional member functions into the body of stim::
Default is undefined.
#define STIM_INJECT_MEMBERS_MESH_READER
Define this if you wish to inject additional member functions into the body of stim::
Default is undefined.
#define STIM_INJECT_MEMBERS_PLANE
Define this if you wish to inject additional member functions into the body of stim::
Default is undefined.
#define STIM_INJECT_MEMBERS_SPAN
Define this if you wish to inject additional member functions into the body of stim::
Default is undefined.
#define STIM_INJECT_MEMBERS_STRING_VIEW
Define this if you wish to inject additional member functions into the body of stim::
Default is undefined.
#define STIM_INJECT_MEMBERS_VECTOR
Define this if you wish to inject additional member functions into the body of stim::
Default is undefined.
#define STIM_STD_CHRONO_COMPAT
Enable this to allow the use of std::
Default is 0
(disabled).
#define STIM_STD_OSTREAM_COMPAT
Enable this to allow stim::
Default is 0
(disabled).
#define STIM_STD_STRING_COMPAT
Enable this to allow stim::
Default is 0
(disabled).
#define STIM_STD_STRING_VIEW_COMPAT
Enable this to allow stim::
Default is 0
(disabled), unless you are targeting c++17 and have one or both of STIM_1
.
#define STIM_UE4_COMPAT
Enable this to allow some stim ↔ UE4 type conversions and other simple interop.
Adds the following UE4 conversions:
- stim::
vector↔ FVector, FVector2D, FVector4 - stim::
matrix↔ FMatrix, TMatrix - stim::
plane↔ FPlane - stim::
bounding_box↔ FBox - stim::
string_view→ FString - stim::
span← TArray, TArrayView
Also automatically sets some other configuration options:
Default is 0
(disabled).