Split r3159..r3161, part 2: C++ tracker headers.

git-svn-id: https://svn.eduke32.com/eduke32@3167 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-11-15 14:27:51 +00:00
parent f20a001618
commit d37278ec58
2 changed files with 6 additions and 6 deletions

View file

@ -8,31 +8,31 @@ class __TRACKER_NAME
inline TrackedType* operator & ()
{
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
__TRACKER_GLOBAL_HOOK((uintptr_t)&this->TrackedValue);
return &this->TrackedValue;
}
inline TrackedType operator ++ ()
{
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
__TRACKER_GLOBAL_HOOK((uintptr_t)&this->TrackedValue);
return ++this->TrackedValue;
}
inline TrackedType operator ++ (int)
{
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
__TRACKER_GLOBAL_HOOK((uintptr_t)&this->TrackedValue);
return this->TrackedValue++;
}
inline TrackedType operator -- ()
{
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
__TRACKER_GLOBAL_HOOK((uintptr_t)&this->TrackedValue);
return --this->TrackedValue;
}
inline TrackedType operator -- (int)
{
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
__TRACKER_GLOBAL_HOOK((uintptr_t)&this->TrackedValue);
return this->TrackedValue--;
}

View file

@ -22,7 +22,7 @@ inline TrackedType __TRACKER_NAME<TrackedType>::operator __TRACKER_OPERATOR (__T
if (!isNoop) {
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
__TRACKER_GLOBAL_HOOK((uintptr_t)&this->TrackedValue);
return (this->TrackedValue __TRACKER_OPERATOR __TRACKER_RIGHTHAND);
} else {
return this->TrackedValue;