EmrysFilter 0.1.0
State estimation utilities in C++23 using Eigen
Loading...
Searching...
No Matches
Macros.h
Go to the documentation of this file.
1#pragma once
2
7
9
10#include <Eigen/Core>
11
20#ifndef EMRYS_FILTER_ASSERT
21# define EMRYS_FILTER_ASSERT(x) eigen_assert(x)
22#endif
23
24// EMRYS_FILTER_NO_IO leaves out printing (see Print.h). Eigen's EIGEN_NO_IO implies it, since
25// Eigen then has no operator<< for the matrices a description prints.
26#if defined(EIGEN_NO_IO) && !defined(EMRYS_FILTER_NO_IO)
27# define EMRYS_FILTER_NO_IO
28#endif
29
33#if defined(__has_cpp_attribute) && __has_cpp_attribute(msvc::no_unique_address)
34# define EMRYS_FILTER_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
35#elif defined(__has_cpp_attribute) && __has_cpp_attribute(no_unique_address)
36# define EMRYS_FILTER_NO_UNIQUE_ADDRESS [[no_unique_address]]
37#else
38# define EMRYS_FILTER_NO_UNIQUE_ADDRESS
39#endif
The library's version, the same numbers as the CMake project's, and the Eigen version it requires.