Skip to content

Commit

Permalink
#88 - removed (no longer needed) assert.
Browse files Browse the repository at this point in the history
  • Loading branch information
vlutas committed Mar 27, 2024
1 parent 37a8c94 commit 4bc4636
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
10 changes: 0 additions & 10 deletions inc/bddisasm_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,4 @@ typedef ND_UINT8 ND_BOOL;
#define ND_FALSE (0)


// Static assertion.
#ifdef _MSC_VER
// When used without include <assert.h>, 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 <assert.h>.
#define ND_STATIC_ASSERT _Static_assert
#endif

#endif // BDDISASM_TYPES_H
3 changes: 0 additions & 3 deletions inc/bdshemu_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -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).
//
Expand Down

0 comments on commit 4bc4636

Please sign in to comment.