mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-05 20:41:06 +00:00
1cd11d06ef
This reverts r3159..r3161. Conflicts: eduke32/build/include/compat.h (Handled so that r3163's changes are kept applied.) git-svn-id: https://svn.eduke32.com/eduke32@3165 1a8010ca-5511-0410-912e-c29ae57300e0
30 lines
No EOL
841 B
C++
30 lines
No EOL
841 B
C++
|
|
template<typename TrackedType>
|
|
inline TrackedType __TRACKER_NAME<TrackedType>::operator __TRACKER_OPERATOR (__TRACKER_RIGHTHAND_TYPE)
|
|
{
|
|
bool isNoop;
|
|
|
|
switch (__TRACKER_NOOP) {
|
|
case __TRACKER_NOOP_RIGHTHAND_EQUAL:
|
|
isNoop = this->TrackedValue == __TRACKER_RIGHTHAND;
|
|
break;
|
|
case __TRACKER_NOOP_RIGHTHAND_ZERO:
|
|
isNoop = __TRACKER_RIGHTHAND == 0;
|
|
break;
|
|
case __TRACKER_NOOP_RIGHTHAND_ONE:
|
|
isNoop = __TRACKER_RIGHTHAND == 1;
|
|
break;
|
|
default:
|
|
case __TRACKER_NEVER:
|
|
isNoop = false;
|
|
break;
|
|
}
|
|
|
|
if (!isNoop) {
|
|
|
|
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
|
|
return (this->TrackedValue __TRACKER_OPERATOR __TRACKER_RIGHTHAND);
|
|
} else {
|
|
return this->TrackedValue;
|
|
}
|
|
} |