mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 10:11:04 +00:00
The great repository rearrangement of 2017.
Files moved but not modified. Changes to follow in a subsequent commit. You down with CPP? git-svn-id: https://svn.eduke32.com/eduke32@6055 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
05985da5a3
commit
1cc9d13ccf
916 changed files with 0 additions and 319 deletions
30
source/build/include/tracker_operator.hpp
Normal file
30
source/build/include/tracker_operator.hpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
|
||||
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_((uintptr_t)&this->TrackedValue);
|
||||
return (this->TrackedValue TRACKER_OPERATOR_ __TRACKER_RIGHTHAND);
|
||||
} else {
|
||||
return this->TrackedValue;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue