Im want create reverse macro for constant integers, how i can do it?


#define MU_ITEM(x, y) (x * 512 + y)

My goal is make result of number format like: before & after.

  • Don't think you'll get around scripting there ... – 0xC0000022L Dec 22 '17 at 19:49

You'll need to write a hex-rays plugin for that. You can find examples of the sample plugins here, in python or in the samples of the SDK in C++. One of these examples inverts if/else in decompiler output with corresponding manipulation of the if statement condition.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.