|
convention = idaapi.CM_CC_MASK & function_details.cc |
The new code should look something like this:
calling_convention: int = ida_typeinf.CM_CC_MASK & function_details.get_explicit_cc() # https://python.docs.hex-rays.com/ida_typeinf/index.html#ida_typeinf.func_type_data_t.get_explicit_cc
and instead of
if calling_convention == ida_typeinf.CM_CC_CDECL:
# function_details.cc = idaapi.CM_CC_SPECIAL
function_details.set_cc(idaapi.CM_CC_SPECIAL)
# ... more code here
HexRaysPyTools/HexRaysPyTools/callbacks/function_signature_modifiers.py
Line 22 in 4742ce4
The new code should look something like this:
and instead of