diff options
author | Aki <please@ignore.pl> | 2021-10-01 22:52:04 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-10-01 23:45:09 +0200 |
commit | 5e6773397cc101c7c3d08482efc456daa91734e9 (patch) | |
tree | d6a116bb2c12dab6ff5e0f212676a9ac6bd19346 /Opcode/Ice/IceContainer.cpp | |
parent | c2d2c3551501110fddd78674d5435bfaa70382a3 (diff) | |
download | starshatter-5e6773397cc101c7c3d08482efc456daa91734e9.zip starshatter-5e6773397cc101c7c3d08482efc456daa91734e9.tar.gz starshatter-5e6773397cc101c7c3d08482efc456daa91734e9.tar.bz2 |
Switched to use only one version of Opcode
Diffstat (limited to 'Opcode/Ice/IceContainer.cpp')
-rw-r--r-- | Opcode/Ice/IceContainer.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Opcode/Ice/IceContainer.cpp b/Opcode/Ice/IceContainer.cpp index e2c42d1..552d051 100644 --- a/Opcode/Ice/IceContainer.cpp +++ b/Opcode/Ice/IceContainer.cpp @@ -28,9 +28,11 @@ using namespace IceCore; // Static members
#ifdef CONTAINER_STATS
+#ifdef OPCODE_EXPORTS
udword Container::mNbContainers = 0;
udword Container::mUsedRam = 0;
#endif
+#endif
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
@@ -343,3 +345,13 @@ void Container::operator=(const Container& object) CopyMemory(mEntries, object.GetEntries(), mMaxNbEntries*sizeof(udword));
mCurNbEntries = mMaxNbEntries;
}
+
+udword Container::GetNbContainers() const
+{
+ return mNbContainers;
+}
+
+udword Container::GetTotalBytes() const
+{
+ return mUsedRam;
+}
|