mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@11088 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
06a3dfe7eb
commit
26394b7e5e
2 changed files with 5 additions and 3 deletions
|
|
@ -40,7 +40,9 @@ inline int32 Round(double a)
|
|||
#ifdef flagDEBUG
|
||||
#define LG LogGui
|
||||
#else
|
||||
#define LG
|
||||
inline void LG_Dummy_Nop__(int level, const char *fmt, ...) {} // needed to silence CLANG warnings
|
||||
inline void LG_Dummy_Nop__(const char *fmt, ...) {} // about unused value
|
||||
#define LG LG_Dummy_Nop__
|
||||
#endif
|
||||
#define LGR LogGui
|
||||
|
||||
|
|
|
|||
|
|
@ -53,9 +53,9 @@ public:
|
|||
ASSERT(refcount == 0);
|
||||
}
|
||||
|
||||
void AddRef() const { if(this) AtomicInc(refcount); }
|
||||
void AddRef() const { AtomicInc(refcount); }
|
||||
int GetRefCount() const { return refcount; }
|
||||
void Release() const { if(this && !AtomicDec(refcount)) delete this; }
|
||||
void Release() const { if(!AtomicDec(refcount)) delete this; }
|
||||
#ifdef REF_DEBUG
|
||||
int GetAllocIndex() const { return allocindex; }
|
||||
#endif//REF_DEBUG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue