XMSS Library
|
C99 compatibility layer. More...
#include "xmss_config.h"
Go to the source code of this file.
Macros | |
#define | XMSS_COMPAT_H_INCLUDED |
Include guard. | |
#define | XMSS_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg) |
Syntactical equivalent of _Static_assert() , which is C11. More... | |
C99 compatibility layer.
There is no need to include this header explicitly. Instead, include either verification.h or signing.h.
The XMSS library is compatible with C99 compilers, but it also allows certain C11 features if they are available for the compiler at hand. This header ensures that the code does not get cluttered with preprocessor #if
s. You can simply use the compatibility macros defined here, which will automatically either use the C11 feature (when available) or become a no-op (when not available).
#define XMSS_STATIC_ASSERT | ( | cond, | |
msg | |||
) | _Static_assert(cond, msg) |
Syntactical equivalent of _Static_assert()
, which is C11.
C11 supports _Static_assert()
. CMake can detect if it is available anyway, even if the compiler is not C11. If CMake detects that static asserts are not supported, then this macro is a no-op.