mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-09 15:00:48 +00:00
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:
parent
f20a001618
commit
d37278ec58
2 changed files with 6 additions and 6 deletions
|
@ -8,31 +8,31 @@ class __TRACKER_NAME
|
||||||
|
|
||||||
inline TrackedType* operator & ()
|
inline TrackedType* operator & ()
|
||||||
{
|
{
|
||||||
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
|
__TRACKER_GLOBAL_HOOK((uintptr_t)&this->TrackedValue);
|
||||||
return &this->TrackedValue;
|
return &this->TrackedValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline TrackedType operator ++ ()
|
inline TrackedType operator ++ ()
|
||||||
{
|
{
|
||||||
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
|
__TRACKER_GLOBAL_HOOK((uintptr_t)&this->TrackedValue);
|
||||||
return ++this->TrackedValue;
|
return ++this->TrackedValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline TrackedType operator ++ (int)
|
inline TrackedType operator ++ (int)
|
||||||
{
|
{
|
||||||
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
|
__TRACKER_GLOBAL_HOOK((uintptr_t)&this->TrackedValue);
|
||||||
return this->TrackedValue++;
|
return this->TrackedValue++;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline TrackedType operator -- ()
|
inline TrackedType operator -- ()
|
||||||
{
|
{
|
||||||
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
|
__TRACKER_GLOBAL_HOOK((uintptr_t)&this->TrackedValue);
|
||||||
return --this->TrackedValue;
|
return --this->TrackedValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline TrackedType operator -- (int)
|
inline TrackedType operator -- (int)
|
||||||
{
|
{
|
||||||
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
|
__TRACKER_GLOBAL_HOOK((uintptr_t)&this->TrackedValue);
|
||||||
return this->TrackedValue--;
|
return this->TrackedValue--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ inline TrackedType __TRACKER_NAME<TrackedType>::operator __TRACKER_OPERATOR (__T
|
||||||
|
|
||||||
if (!isNoop) {
|
if (!isNoop) {
|
||||||
|
|
||||||
__TRACKER_GLOBAL_HOOK((int)&this->TrackedValue);
|
__TRACKER_GLOBAL_HOOK((uintptr_t)&this->TrackedValue);
|
||||||
return (this->TrackedValue __TRACKER_OPERATOR __TRACKER_RIGHTHAND);
|
return (this->TrackedValue __TRACKER_OPERATOR __TRACKER_RIGHTHAND);
|
||||||
} else {
|
} else {
|
||||||
return this->TrackedValue;
|
return this->TrackedValue;
|
||||||
|
|
Loading…
Reference in a new issue