From c0528d5cb01465bf4b7a477e88d3e27acbc2b564 Mon Sep 17 00:00:00 2001 From: flobernd Date: Wed, 11 Jan 2017 11:24:10 +0100 Subject: [PATCH] Exposed ZYDIS_MAX_INSTRUCTION_LENGTH constant --- include/Zydis/Decoder.h | 12 ++++++++++++ src/Decoder.c | 6 ------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/include/Zydis/Decoder.h b/include/Zydis/Decoder.h index dd47360..4eb729a 100644 --- a/include/Zydis/Decoder.h +++ b/include/Zydis/Decoder.h @@ -36,6 +36,18 @@ extern "C" { #endif +/* ============================================================================================== */ +/* Macros */ +/* ============================================================================================== */ + +/* ---------------------------------------------------------------------------------------------- */ +/* Constants */ +/* ---------------------------------------------------------------------------------------------- */ + +#define ZYDIS_MAX_INSTRUCTION_LENGTH 15 + +/* ---------------------------------------------------------------------------------------------- */ + /* ============================================================================================== */ /* Enums and types */ /* ============================================================================================== */ diff --git a/src/Decoder.c b/src/Decoder.c index 7d3d86b..3fda183 100644 --- a/src/Decoder.c +++ b/src/Decoder.c @@ -33,12 +33,6 @@ /* Internal macros */ /* ============================================================================================== */ -/* ---------------------------------------------------------------------------------------------- */ -/* Constants */ -/* ---------------------------------------------------------------------------------------------- */ - -#define ZYDIS_MAX_INSTRUCTION_LENGTH 15 - /* ---------------------------------------------------------------------------------------------- */ /* Helper macros */ /* ---------------------------------------------------------------------------------------------- */