uxmal / reko

Reko is a binary decompiler.
https://uxmal.github.io/reko
GNU General Public License v2.0
2.09k stars 250 forks source link

CParser: Define __REKO_DECOMPILER__ macro #1323

Closed throwaway96 closed 5 months ago

throwaway96 commented 5 months ago

This is useful for keeping headers compatible with IDA, Ghidra, etc.

CParser doesn't have #if support yet, so there's no point in doing anything fancy; the value of __REKO_DECOMPILER__ is 1.

Added a unit test.

uxmal commented 5 months ago

LGTM, as they say. Thanks for the contribution!