Zydis  v2.0.1
Defines.h File Reference

General helper and platform detection macros. More...

#include <ZydisExportConfig.h>
#include <assert.h>
Include dependency graph for Defines.h:
This graph shows which files directly or indirectly include this file:

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_STATIC_ASSERT(x)   typedef int ZYDIS_SASSERT_IMPL[(x) ? 1 : -1]
 Compiler-time assertion. More...
 
#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...
 

Detailed Description

General helper and platform detection macros.

Macro Definition Documentation

◆ 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

Declares a bitfield.

◆ ZYDIS_FALLTHROUGH

#define ZYDIS_FALLTHROUGH

Intentional fallthrough.

◆ ZYDIS_INLINE

#define ZYDIS_INLINE   static inline

◆ ZYDIS_RELEASE

#define ZYDIS_RELEASE

◆ ZYDIS_STATIC_ASSERT

#define ZYDIS_STATIC_ASSERT (   x)    typedef int ZYDIS_SASSERT_IMPL[(x) ? 1 : -1]

Compiler-time assertion.

◆ ZYDIS_UNKNOWN_COMPILER

#define ZYDIS_UNKNOWN_COMPILER

◆ ZYDIS_UNKNOWN_PLATFORM

#define ZYDIS_UNKNOWN_PLATFORM

◆ ZYDIS_UNREACHABLE

#define ZYDIS_UNREACHABLE   for(;;)

◆ ZYDIS_UNUSED_PARAMETER

#define ZYDIS_UNUSED_PARAMETER (   x)    (void)(x)

Marks the specified parameter as unused.