How to check whether a function is marked as decompiled?

Hi everyone! I’m trying to make a plugin which dumps function pseudocode if the function has been marked as decompiled however, I’m struggling to find the API which tells me if function has been marked as decompiled.

Does anybody know how to get it? Thanks!

Hi,

There is no specific API because all that the action does is to change the function’s color to the one configured in the decompiler options. To get it you can use, for example, idc.get_func_attr(funcea, idc.FUNCATTR_COLOR).

1 Like

Thanks! that works flawlessly