diff options
Diffstat (limited to 'source/core/smart-pointer.h')
| -rw-r--r-- | source/core/smart-pointer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/smart-pointer.h b/source/core/smart-pointer.h index 87cb40d70..3e64eac96 100644 --- a/source/core/smart-pointer.h +++ b/source/core/smart-pointer.h @@ -49,6 +49,11 @@ namespace Slang SLANG_ASSERT(referenceCount != 0); return referenceCount == 1; } + + UInt debugGetReferenceCount() + { + return referenceCount; + } }; inline void addReference(RefObject* obj) |
