#include <cml/core/cml_meta.h>
Go to the source code of this file.
Classes | |
struct | cml::STATIC_ASSERTION_FAILURE< true > |
Struct instantiated when a true assertion is made at compile-time. More... | |
struct | cml::STATIC_ASSERTION_FAILURE_M< T, M > |
A more meaningful compile-time assertion struct. More... | |
struct | cml::STATIC_ASSERTION_FAILURE_M< true, M > |
Instantiated for true assertions. More... | |
Namespaces | |
namespace | cml |
Defines | |
#define | CML_DO_JOIN(X, Y) CML_DO_JOIN2(X,Y) |
#define | CML_DO_JOIN2(X, Y) X##Y |
#define | CML_JOIN(X, Y) CML_DO_JOIN(X,Y) |
#define | CML_STATIC_REQUIRE(_E_) |
Create a compile-time assertion. | |
#define | CML_STATIC_REQUIRE_M(_E_, _M_) |
Create a compile-time assertion with a message. | |
#define | TO_STRING(X) TO_STRING2(X) |
#define | TO_STRING2(X) #X |
Definition in file cml_assert.h.
#define CML_DO_JOIN | ( | X, | |||
Y | ) | CML_DO_JOIN2(X,Y) |
Definition at line 25 of file cml_assert.h.
#define CML_DO_JOIN2 | ( | X, | |||
Y | ) | X##Y |
Definition at line 26 of file cml_assert.h.
#define CML_JOIN | ( | X, | |||
Y | ) | CML_DO_JOIN(X,Y) |
Definition at line 24 of file cml_assert.h.
#define CML_STATIC_REQUIRE | ( | _E_ | ) |
Value:
typedef typename STATIC_ASSERTION_FAILURE<(_E_)>::result \ CML_JOIN(__cml_assert_test_typedef_, __LINE__)
Definition at line 53 of file cml_assert.h.
#define CML_STATIC_REQUIRE_M | ( | _E_, | |||
_M_ | ) |
Value:
typedef typename STATIC_ASSERTION_FAILURE_M<(_E_),_M_> \ ::result CML_JOIN(__bogus_assert_type_, __LINE__)
Definition at line 88 of file cml_assert.h.
Referenced by cml::et::CheckedSquare(), cml::detail::CheckMat(), cml::detail::CheckMatMinNxM(), cml::detail::CheckMatNxM(), cml::detail::CheckMatSquare(), cml::detail::CheckQuat(), cml::detail::CheckVec(), cml::detail::CheckVec2Or3(), cml::detail::CheckVecN(), cml::cross(), cml::dot(), cml::detail::lu_copy(), cml::detail::lu_inplace(), cml::detail::MatMulCheckedSize(), cml::detail::matrix_total_order(), cml::detail::matrix_weak_order(), cml::detail::mul(), cml::outer(), cml::perp_dot(), cml::detail::quaternion_total_order(), cml::detail::quaternion_weak_order(), cml::detail::Require2D(), cml::detail::Require3D(), cml::detail::vector_total_order(), and cml::detail::vector_weak_order().
#define TO_STRING | ( | X | ) | TO_STRING2(X) |
Definition at line 29 of file cml_assert.h.
#define TO_STRING2 | ( | X | ) | #X |
Definition at line 30 of file cml_assert.h.