From 9fe2d0048bdc40b51ef4f720e6501306592b0c15 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Mon, 19 Jan 2009 19:40:14 +0000 Subject: [PATCH] idaapi.i: Added BADNODE constant idaapi.i: Added empty CASSERT define idaapi.i: Added uval_array type --- swig/idaapi.i | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/swig/idaapi.i b/swig/idaapi.i index faa5d7e..d2e27b5 100644 --- a/swig/idaapi.i +++ b/swig/idaapi.i @@ -45,6 +45,7 @@ %constant ea_t BADADDR = 0xFFFFFFFF; %constant sel_t BADSEL = 0xFFFFFFFF; +%constant nodeidx_t BADNODE = 0xFFFFFFFF; // Help SWIG to figure out the ulonglong type #ifdef SWIGWIN @@ -65,6 +66,9 @@ typedef long long longlong; %include "pro.h" +// Do not move this. We need to override the define from pro.h +#define CASSERT(type) + // Convert all of these %cstring_output_maxstr_none(char *buf, size_t bufsize); @@ -72,6 +76,7 @@ typedef long long longlong; %array_class(tid_t, tid_array); %array_class(ea_t, ea_array); %array_class(sel_t, sel_array); +%array_class(uval_t, uval_array); %pointer_class(int, int_pointer); %pointer_class(ea_t, ea_pointer); %pointer_class(sval_t, sval_pointer); @@ -84,7 +89,7 @@ typedef long long longlong; %include "nalt.i" %include "allins.i" -%include "area.hpp" +%include "area.i" %include "auto.i" %include "bytes.i" %include "dbg.i" @@ -124,4 +129,4 @@ idainfo *get_inf_structure(void) %inline { void enable_extlang_python(bool enable); -} \ No newline at end of file +}