expr.i: Merge from Ilfak: Wrapped calcexpr() and calc_idc_expr()

This commit is contained in:
gergely.erdelyi 2009-01-25 16:34:08 +00:00
parent 04492e420c
commit 0bc9d6477c

View File

@ -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);