summaryrefslogtreecommitdiff
path: root/source/core
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-08-31 11:08:54 -0700
committerGitHub <noreply@github.com>2017-08-31 11:08:54 -0700
commit620734080f825cb205b887fa1d6203e35dd60663 (patch)
treeb7c3c0003d6d8d67f3f04f136af083deaa5e591b /source/core
parent227f9f5a9d8ac0d88079b6175b3f31c8f05fabd0 (diff)
parent60ed10520dd9af285e7d865445427caedc7e1ec6 (diff)
Merge pull request #174 from tfoleyNV/modifier-lowering-fix
Fix some issues around cloned modifiers.
Diffstat (limited to 'source/core')
-rw-r--r--source/core/smart-pointer.h5
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)