summaryrefslogtreecommitdiff
path: root/utils/SmartPointer.h
diff options
context:
space:
mode:
authorchatty1994-07-06 10:59:43 +0000
committerchatty1994-07-06 10:59:43 +0000
commit170de22c8d7861ffe3f041ce1c92ff6a288c4dd8 (patch)
treec9154063702cf7c8099f931a49f85322218b6265 /utils/SmartPointer.h
parentba67eaab578e52af90f5284fc701db086879b867 (diff)
downloadivy-league-170de22c8d7861ffe3f041ce1c92ff6a288c4dd8.zip
ivy-league-170de22c8d7861ffe3f041ce1c92ff6a288c4dd8.tar.gz
ivy-league-170de22c8d7861ffe3f041ce1c92ff6a288c4dd8.tar.bz2
ivy-league-170de22c8d7861ffe3f041ce1c92ff6a288c4dd8.tar.xz
New technique for finding dynamic objects
Diffstat (limited to 'utils/SmartPointer.h')
-rw-r--r--utils/SmartPointer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/SmartPointer.h b/utils/SmartPointer.h
index ec61e72..37c78ee 100644
--- a/utils/SmartPointer.h
+++ b/utils/SmartPointer.h
@@ -21,6 +21,7 @@
#endif
#include "cplus_bugs.h"
+class CcuList;
class CcuSmartData {
public:
@@ -28,12 +29,15 @@ public:
private:
static check_type check;
-
int State;
inline int IsDynamic () const { return !(State & 1); }
protected:
+#ifdef OLD
static int NextCreatedIsDynamic;
+#else
+static CcuList* LastDynamics;
+#endif
public:
void* operator new (unsigned long);