#include <stdexcept>

Go to the source code of this file.
Macros | |
| #define | MRPT_LIKELY(EXPR) (!!(EXPR)) | 
| MRPT_LIKELY(): disable the branch prediction and manually setting the preference for the positive case.  More... | |
| #define | MRPT_X_ASSERT(CHECK) (MRPT_LIKELY(CHECK) ? void(0) : [] { throw std::runtime_error(#CHECK); }()) | 
| MRPT_X_ASSERT(): build error if condition is known not to work at compile time, throw an exception at runtime if the condition needs to be evaluated.  More... | |
| #define MRPT_LIKELY | ( | EXPR | ) | (!!(EXPR)) | 
MRPT_LIKELY(): disable the branch prediction and manually setting the preference for the positive case.
See: https://akrzemi1.wordpress.com/2017/05/18/asserts-in-constexpr-functions
| #define MRPT_X_ASSERT | ( | CHECK | ) | (MRPT_LIKELY(CHECK) ? void(0) : [] { throw std::runtime_error(#CHECK); }()) | 
MRPT_X_ASSERT(): build error if condition is known not to work at compile time, throw an exception at runtime if the condition needs to be evaluated.
| Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |