Loading...
Searching...
No Matches
assert.h File Reference

Runtime and compile-time assert macros. More...

Macros

#define SPDK_STATIC_ASSERT(cond, msg)
 Compatibility wrapper for static_assert.
 

Detailed Description

Runtime and compile-time assert macros.

Macro Definition Documentation

◆ SPDK_STATIC_ASSERT

#define SPDK_STATIC_ASSERT ( cond,
msg )

Compatibility wrapper for static_assert.

This won't actually enforce the condition when compiled with an environment that doesn't support C11 static_assert; it is only intended to allow end users with old compilers to build the package.

Developers should use a recent compiler that provides static_assert.