-2

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

Example:

#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
1

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 acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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