2007-10-20 09:03:51 +02:00
|
|
|
%ignore extfun_t;
|
|
|
|
%ignore funcset_t;
|
2008-10-04 14:38:29 +02:00
|
|
|
%ignore extlang_t;
|
|
|
|
%ignore extlang;
|
|
|
|
%ignore register_extlang;
|
2007-10-20 09:03:51 +02:00
|
|
|
%ignore IDCFuncs;
|
|
|
|
%ignore set_idc_func;
|
|
|
|
%ignore VarLong;
|
|
|
|
%ignore VarNum;
|
|
|
|
%ignore VarString;
|
|
|
|
%ignore VarFloat;
|
|
|
|
%ignore VarFree;
|
|
|
|
%ignore calcexpr_long;
|
|
|
|
%ignore Run;
|
|
|
|
%ignore ExecuteLine;
|
|
|
|
%ignore ExecuteFile;
|
|
|
|
%ignore set_idc_func_body;
|
|
|
|
%ignore get_idc_func_body;
|
|
|
|
%ignore idc_stacksize;
|
|
|
|
%ignore idc_calldepth;
|
|
|
|
%ignore expr_printf;
|
|
|
|
%ignore expr_sprintf;
|
|
|
|
%ignore expr_printfer;
|
|
|
|
%ignore idaapi init_idc;
|
|
|
|
%ignore idaapi term_idc;
|
|
|
|
%ignore del_idc_userfuncs;
|
2009-01-19 20:41:24 +01:00
|
|
|
%ignore del_idc_userdefs;
|
2007-10-20 09:03:51 +02:00
|
|
|
%ignore find_builtin_idc_func;
|
|
|
|
%ignore idc_lx;
|
2009-01-19 20:41:24 +01:00
|
|
|
%ignore idc_vars;
|
2007-10-20 09:03:51 +02:00
|
|
|
|
2008-04-12 09:30:46 +02:00
|
|
|
%cstring_output_maxstr_none(char *errbuf, size_t errbufsize);
|
2007-10-20 09:03:51 +02:00
|
|
|
|
2008-04-12 10:45:01 +02:00
|
|
|
/* Compile* functions return false when error so the return */
|
|
|
|
/* value must be negated for the error string to be returned */
|
|
|
|
%rename (CompileEx) CompileEx_wrap;
|
|
|
|
%inline %{
|
|
|
|
bool CompileEx_wrap(const char *file, bool del_macros,
|
|
|
|
char *errbuf, size_t errbufsize)
|
|
|
|
{
|
|
|
|
return !CompileEx(file, del_macros, errbuf, errbufsize);
|
|
|
|
}
|
|
|
|
%}
|
|
|
|
|
|
|
|
%rename (Compile) Compile_wrap;
|
|
|
|
%inline %{
|
|
|
|
bool Compile_wrap(const char *file, char *errbuf, size_t errbufsize)
|
|
|
|
{
|
|
|
|
return !Compile(file, errbuf, errbufsize);
|
|
|
|
}
|
|
|
|
%}
|
|
|
|
|
2009-01-25 17:34:08 +01:00
|
|
|
%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);
|
|
|
|
}
|
|
|
|
%}
|
|
|
|
|
2008-04-12 12:11:14 +02:00
|
|
|
//%feature("compactdefaultargs") CompileLine;
|
|
|
|
|
|
|
|
%ignore CompileLine(const char *line, char *errbuf, size_t errbufsize, uval_t (idaapi*_getname)(const char *name)=NULL);
|
|
|
|
|
2008-04-12 10:45:01 +02:00
|
|
|
%rename (CompileLine) CompileLine_wrap;
|
|
|
|
%inline %{
|
|
|
|
bool CompileLine_wrap(const char *line, char *errbuf, size_t errbufsize)
|
|
|
|
{
|
|
|
|
return !CompileLine(line, errbuf, errbufsize);
|
|
|
|
}
|
|
|
|
%}
|
|
|
|
|
|
|
|
%include "expr.hpp"
|
2007-10-20 09:03:51 +02:00
|
|
|
|