From 0bc9d6477cc41d8f342ee93349974aca4101b318 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Sun, 25 Jan 2009 16:34:08 +0000 Subject: [PATCH] expr.i: Merge from Ilfak: Wrapped calcexpr() and calc_idc_expr() --- swig/expr.i | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/swig/expr.i b/swig/expr.i index d30bfdc..d11fbae 100644 --- a/swig/expr.i +++ b/swig/expr.i @@ -50,6 +50,22 @@ bool Compile_wrap(const char *file, char *errbuf, size_t errbufsize) } %} +%rename (calcexpr) calcexpr_wrap; +%inline %{ +bool calcexpr_wrap(ea_t where,const char *line, idc_value_t *rv, char *errbuf, size_t errbufsize) +{ + return !calcexpr(where, line, rv, errbuf, errbufsize); +} +%} + +%rename (calc_idc_expr) calc_idc_expr_wrap; +%inline %{ +bool calc_idc_expr_wrap(ea_t where,const char *line, idc_value_t *rv, char *errbuf, size_t errbufsize) +{ + return !calc_idc_expr(where, line, rv, errbuf, errbufsize); +} +%} + //%feature("compactdefaultargs") CompileLine; %ignore CompileLine(const char *line, char *errbuf, size_t errbufsize, uval_t (idaapi*_getname)(const char *name)=NULL);