mirror of
https://github.com/cemu-project/idapython.git
synced 2024-11-28 03:54:18 +01:00
funcs.i: Added wrapper get_fchunk_referer(). Patch by Igor Skochinsky.
This commit is contained in:
parent
e9f1e04519
commit
9a8f92ac52
10
swig/funcs.i
10
swig/funcs.i
@ -35,3 +35,13 @@
|
|||||||
%clear(char *buf);
|
%clear(char *buf);
|
||||||
%clear(char *optlibs);
|
%clear(char *optlibs);
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
ea_t get_fchunk_referer(ea_t ea, size_t idx)
|
||||||
|
{
|
||||||
|
func_t *pfn = get_fchunk(ea);
|
||||||
|
func_parent_iterator_t dummy(pfn); // read referer info
|
||||||
|
if ( idx >= pfn->refqty || pfn->referers == NULL )
|
||||||
|
return BADADDR;
|
||||||
|
return pfn->referers[idx];
|
||||||
|
}
|
||||||
|
%}
|
||||||
|
Loading…
Reference in New Issue
Block a user