mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Update sqratClass.h
This commit is contained in:
parent
e2528e88dd
commit
5082b9ace8
@ -109,7 +109,7 @@ public:
|
||||
//ClassType<C>::getStaticClassData() = cd->staticData;
|
||||
} else {
|
||||
//cd->staticData = ClassType<C>::getStaticClassData().Lock();
|
||||
throw Exception("investigate me!");
|
||||
throw Exception("investigate me! [Class]");
|
||||
}
|
||||
|
||||
HSQOBJECT& classObj = cd->classObj;
|
||||
@ -976,15 +976,17 @@ public:
|
||||
ClassData<B>* bd = ClassType<B>::getClassData(v);
|
||||
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->copyFunc = &A::Copy;
|
||||
cd->staticData->className = string(className);
|
||||
cd->staticData->baseClass = bd->staticData.Get();
|
||||
|
||||
ClassType<C>::getStaticClassData() = cd->staticData;
|
||||
//ClassType<C>::getStaticClassData() = cd->staticData;
|
||||
} else {
|
||||
cd->staticData = ClassType<C>::getStaticClassData().Lock();
|
||||
//cd->staticData = ClassType<C>::getStaticClassData().Lock();
|
||||
throw Exception("investigate me! [DerivedClass]");
|
||||
}
|
||||
|
||||
HSQOBJECT& classObj = cd->classObj;
|
||||
|
Loading…
Reference in New Issue
Block a user