1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Update sqratClass.h

This commit is contained in:
Sandu Liviu Catalin 2021-03-15 07:00:46 +02:00
parent e2528e88dd
commit 5082b9ace8

View File

@ -109,7 +109,7 @@ public:
//ClassType<C>::getStaticClassData() = cd->staticData; //ClassType<C>::getStaticClassData() = cd->staticData;
} else { } else {
//cd->staticData = ClassType<C>::getStaticClassData().Lock(); //cd->staticData = ClassType<C>::getStaticClassData().Lock();
throw Exception("investigate me!"); throw Exception("investigate me! [Class]");
} }
HSQOBJECT& classObj = cd->classObj; HSQOBJECT& classObj = cd->classObj;
@ -976,15 +976,17 @@ public:
ClassData<B>* bd = ClassType<B>::getClassData(v); ClassData<B>* bd = ClassType<B>::getClassData(v);
ClassData<C>* cd = *ud; ClassData<C>* cd = *ud;
if (ClassType<C>::getStaticClassData().Expired()) { //if (ClassType<C>::getStaticClassData()->Expired()) {
if (ClassType<C>::getStaticClassData()) {
cd->staticData.Init(new StaticClassData<C, B>); cd->staticData.Init(new StaticClassData<C, B>);
cd->staticData->copyFunc = &A::Copy; cd->staticData->copyFunc = &A::Copy;
cd->staticData->className = string(className); cd->staticData->className = string(className);
cd->staticData->baseClass = bd->staticData.Get(); cd->staticData->baseClass = bd->staticData.Get();
ClassType<C>::getStaticClassData() = cd->staticData; //ClassType<C>::getStaticClassData() = cd->staticData;
} else { } else {
cd->staticData = ClassType<C>::getStaticClassData().Lock(); //cd->staticData = ClassType<C>::getStaticClassData().Lock();
throw Exception("investigate me! [DerivedClass]");
} }
HSQOBJECT& classObj = cd->classObj; HSQOBJECT& classObj = cd->classObj;