Assuming that I have this: 

`enum { A = 0x2E, B = 0x23, C = 0x40 }`

it's possible check if `x` is defined into `enum`?

I'm doing it manually: `int isdef = (x == A || x == B || x == C);` But I want to something more dynamic. `GCC-extensions` are welcome too.