SHOW:
|
|
- or go back to the newest paste.
1 | - | #define EXPAND_XPCOM_NAME(number_, xpcomStateName_) number < 31 : nsIAccessibleStates::STATE_ ## xpcomStateName_ ? nsIAccessibleStates::EXT_STATE_ ## xpcomStateName_ |
1 | + | #define EXPAND_XPCOM_NAME(number_, xpcomStateName_) (number < 31 : nsIAccessibleStates::STATE_##xpcomStateName_ ? nsIAccessibleStates::EXT_STATE_##xpcomStateName_) |
2 | ||
3 | #define STATE(name_, number_, atkState_, atkMappingType_, xpcomStateName_) \ | |
4 | MOZ_STATIC_ASSERT(number_ < 31 ? \ | |
5 | (1 << number_) == EXPAND_XPCOM_NAME(xpcomStateName_) : (1 << (number_ - 31)) == EXPAND_XPCOM_NAME(xpcomStateName_) , \ | |
6 | "xpcom and internal states don't match"); | |
7 | ||
8 | #include "StateList.h" | |
9 | #undef STATE | |
10 | #undef EXPAND_XPCOM_NAME |