Open source Star Ruler 2 source code!

This commit is contained in:
Lucas de Vries
2018-07-17 14:15:37 +02:00
commit cc307720ff
4342 changed files with 2365070 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#pragma once
namespace audio {
template<class T>
struct SAutoDrop {
T* pRef;
void clear() { pRef = 0; }
SAutoDrop(T* object) : pRef(object) {}
~SAutoDrop() {
if(pRef) pRef->drop();
}
};
};