Files
idapython-src/tools/patch_codegen/idp.py
T
2019-10-15 15:05:24 +02:00

37 lines
1.0 KiB
Python

{
"SwigDirector_IDP_Hooks::SwigDirector_IDP_Hooks" : [
("maybe_collect_director_fixed_method_set",
[
("auto_queue_empty", "ev_auto_queue_empty"),
]),
],
"SwigDirector_IDB_Hooks::SwigDirector_IDB_Hooks" : [
("maybe_collect_director_fixed_method_set", None),
],
"SwigDirector_IDP_Hooks::ev_get_bg_color" : [
("director_method_call_arity_cap", (
"ev_get_bg_color",
"(method , __argcnt == 2 ? (PyObject *) obj1 : (PyObject *) obj0, __argcnt == 2 ? (PyObject *) NULL : (PyObject *) obj1, NULL)",
"(swig_get_self(), (PyObject *) swig_method_name , __argcnt == 2 ? (PyObject *) obj1 : (PyObject *) obj0, __argcnt == 2 ? (PyObject *) NULL : (PyObject *) obj1, NULL)")
),
("insert_before_text", ("int swig_val;",
"""
if ( __argcnt == 2 )
{
if ( result == Py_None )
{
result = PyInt_FromLong(0);
}
else if ( IDAPyInt_Check(result) )
{
*color = bgcolor_t(IDAPyInt_AsLong(result));
result = IDAPyInt_FromLong(1);
}
}
""")),
],
}