From 4bc4636765cc18cd32972292e814052c100f7e6d Mon Sep 17 00:00:00 2001 From: Andrei Vlad LUTAS Date: Wed, 27 Mar 2024 09:15:51 +0200 Subject: [PATCH] https://github.com/bitdefender/bddisasm/issues/88 - removed (no longer needed) assert. --- inc/bddisasm_types.h | 10 ---------- inc/bdshemu_x86.h | 3 --- 2 files changed, 13 deletions(-) diff --git a/inc/bddisasm_types.h b/inc/bddisasm_types.h index c1f5fc8..101de89 100644 --- a/inc/bddisasm_types.h +++ b/inc/bddisasm_types.h @@ -105,14 +105,4 @@ typedef ND_UINT8 ND_BOOL; #define ND_FALSE (0) -// Static assertion. -#ifdef _MSC_VER -// When used without include , automatically maps to _Static_assert. Using static_assert is prefered, as -// it works on both C and C++. -#define ND_STATIC_ASSERT static_assert -#else -// Reserved keyword. MSVC only recognizes this if you include . -#define ND_STATIC_ASSERT _Static_assert -#endif - #endif // BDDISASM_TYPES_H diff --git a/inc/bdshemu_x86.h b/inc/bdshemu_x86.h index 1c22252..9a21610 100644 --- a/inc/bdshemu_x86.h +++ b/inc/bdshemu_x86.h @@ -61,9 +61,6 @@ typedef struct _SHEMU_X86_GPR_REGS } SHEMU_X86_GPR_REGS, *PSHEMU_X86_GPR_REGS; -ND_STATIC_ASSERT(ND_MAX_GPR_REGS <= 32, "Too many General Purpose Registers defined in bddisasm! Make sure to update SHEMU_X86_GPR_REGS!"); - - // // Segment register (with its hidden part). //