mirror of
https://github.com/cemu-project/idapython.git
synced 2024-12-27 02:01:51 +01:00
expr.i: Merge from Ilfak: Wrapped calcexpr() and calc_idc_expr()
This commit is contained in:
parent
04492e420c
commit
0bc9d6477c
16
swig/expr.i
16
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;
|
//%feature("compactdefaultargs") CompileLine;
|
||||||
|
|
||||||
%ignore CompileLine(const char *line, char *errbuf, size_t errbufsize, uval_t (idaapi*_getname)(const char *name)=NULL);
|
%ignore CompileLine(const char *line, char *errbuf, size_t errbufsize, uval_t (idaapi*_getname)(const char *name)=NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user