General helper and platform detection macros.
More...
#include <ZydisExportConfig.h>
#include <assert.h>
#include <stdlib.h>
Go to the source code of this file.
General helper and platform detection macros.
◆ ZYDIS_ARRAY_SIZE
#define ZYDIS_ARRAY_SIZE |
( |
|
arr | ) |
(sizeof(arr) / sizeof(arr[0])) |
Calculates the size of an array.
◆ ZYDIS_ASSERT
#define ZYDIS_ASSERT |
( |
|
condition | ) |
assert(condition) |
◆ ZYDIS_BITFIELD
#define ZYDIS_BITFIELD |
( |
|
x | ) |
: x |
◆ ZYDIS_INLINE
#define ZYDIS_INLINE static inline |
◆ ZYDIS_UNKNOWN_COMPILER
#define ZYDIS_UNKNOWN_COMPILER |
◆ ZYDIS_UNREACHABLE
#define ZYDIS_UNREACHABLE { assert(0); abort(); } |