Zydis
v2.0.3
|
General helper and platform detection macros. More...
#include <ZydisExportConfig.h>
#include <assert.h>
Go to the source code of this file.
Macros | |
#define | ZYDIS_UNKNOWN_COMPILER |
#define | ZYDIS_UNKNOWN_PLATFORM |
#define | ZYDIS_RELEASE |
#define | ZYDIS_INLINE static inline |
#define | ZYDIS_ASSERT(condition) assert(condition) |
#define | ZYDIS_UNREACHABLE for(;;) |
#define | ZYDIS_MACRO_CONCAT2(x, y) x##y |
Compiler-time assertion. More... | |
#define | ZYDIS_MACRO_CONCAT(x, y) ZYDIS_MACRO_CONCAT2(x, y) |
#define | ZYDIS_STATIC_ASSERT(x) typedef int ZYDIS_MACRO_CONCAT(ZYDIS_SASSERT_, __COUNTER__) [(x) ? 1 : -1] |
#define | ZYDIS_BITFIELD(x) : x |
Declares a bitfield. More... | |
#define | ZYDIS_UNUSED_PARAMETER(x) (void)(x) |
Marks the specified parameter as unused. More... | |
#define | ZYDIS_FALLTHROUGH |
Intentional fallthrough. More... | |
#define | ZYDIS_ARRAY_SIZE(arr) (sizeof(arr) / sizeof(arr[0])) |
Calculates the size of an array. More... | |
General helper and platform detection macros.
#define ZYDIS_ARRAY_SIZE | ( | arr | ) | (sizeof(arr) / sizeof(arr[0])) |
Calculates the size of an array.
#define ZYDIS_ASSERT | ( | condition | ) | assert(condition) |
#define ZYDIS_BITFIELD | ( | x | ) | : x |
Declares a bitfield.
#define ZYDIS_FALLTHROUGH |
Intentional fallthrough.
#define ZYDIS_INLINE static inline |
#define ZYDIS_MACRO_CONCAT | ( | x, | |
y | |||
) | ZYDIS_MACRO_CONCAT2(x, y) |
#define ZYDIS_MACRO_CONCAT2 | ( | x, | |
y | |||
) | x##y |
Compiler-time assertion.
#define ZYDIS_RELEASE |
#define ZYDIS_STATIC_ASSERT | ( | x | ) | typedef int ZYDIS_MACRO_CONCAT(ZYDIS_SASSERT_, __COUNTER__) [(x) ? 1 : -1] |
#define ZYDIS_UNKNOWN_COMPILER |
#define ZYDIS_UNKNOWN_PLATFORM |
#define ZYDIS_UNREACHABLE for(;;) |
#define ZYDIS_UNUSED_PARAMETER | ( | x | ) | (void)(x) |
Marks the specified parameter as unused.