From bb99a7076e32c0b36cb624de809e594e1fbbdd0b Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Tue, 20 Jan 2009 22:00:51 +0000 Subject: [PATCH] idaapi.i: Added 64-bit BADADDR and BADSEL --- swig/idaapi.i | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/swig/idaapi.i b/swig/idaapi.i index 6098c0d..02f7d1b 100644 --- a/swig/idaapi.i +++ b/swig/idaapi.i @@ -43,9 +43,15 @@ #include "xref.hpp" %} +#ifdef __EA64__ +%constant ea_t BADADDR = 0xFFFFFFFFFFFFFFFF; +%constant sel_t BADSEL = 0xFFFFFFFFFFFFFFFF; +%constant nodeidx_t BADNODE = 0xFFFFFFFFFFFFFFFF; +#else %constant ea_t BADADDR = 0xFFFFFFFF; %constant sel_t BADSEL = 0xFFFFFFFF; %constant nodeidx_t BADNODE = 0xFFFFFFFF; +#endif // Help SWIG to figure out the ulonglong type #ifdef SWIGWIN