In a line like this:

if ((my_variable & 0x80000000) == 0) {

Is there a way to label 0x80000000 as e.g. FLAG_HAS_PROPERTY_GREEN, or would I have to rely on comments for that?

1 Answer 1


select SCALAR in decompiler window
right click ->Set Equate ("E" short cut) type or select if available

a sample EQUATE as below

uVar6 = *(ushort *)param_2 & THIS_IS_MY_BAD;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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