MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / AFStaticAssert

Class AFStaticAssert

CMakeModules/compilers.h:530–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528# define AF_STATIC_ASSERT_JOIN(X, Y) AF_STATIC_ASSERT_JOIN_IMPL(X, Y)
529# define AF_STATIC_ASSERT_JOIN_IMPL(X, Y) X##Y
530template<bool> struct AFStaticAssert;
531template<> struct AFStaticAssert<true>{};
532# define AF_STATIC_ASSERT(X) enum { AF_STATIC_ASSERT_JOIN(AFStaticAssertEnum, __LINE__) = sizeof(AFStaticAssert<X>) }
533# define AF_STATIC_ASSERT_MSG(X, MSG) enum { AF_STATIC_ASSERT_JOIN(AFStaticAssertEnum, __LINE__) = sizeof(AFStaticAssert<X>) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected