From 5082b9ace856febbf73874494d31c5c69de8d646 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Mon, 15 Mar 2021 07:00:46 +0200 Subject: [PATCH] Update sqratClass.h --- module/Sqrat/sqratClass.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/module/Sqrat/sqratClass.h b/module/Sqrat/sqratClass.h index d7756ef9..9010d07a 100644 --- a/module/Sqrat/sqratClass.h +++ b/module/Sqrat/sqratClass.h @@ -109,7 +109,7 @@ public: //ClassType::getStaticClassData() = cd->staticData; } else { //cd->staticData = ClassType::getStaticClassData().Lock(); - throw Exception("investigate me!"); + throw Exception("investigate me! [Class]"); } HSQOBJECT& classObj = cd->classObj; @@ -976,15 +976,17 @@ public: ClassData* bd = ClassType::getClassData(v); ClassData* cd = *ud; - if (ClassType::getStaticClassData().Expired()) { + //if (ClassType::getStaticClassData()->Expired()) { + if (ClassType::getStaticClassData()) { cd->staticData.Init(new StaticClassData); cd->staticData->copyFunc = &A::Copy; cd->staticData->className = string(className); cd->staticData->baseClass = bd->staticData.Get(); - ClassType::getStaticClassData() = cd->staticData; + //ClassType::getStaticClassData() = cd->staticData; } else { - cd->staticData = ClassType::getStaticClassData().Lock(); + //cd->staticData = ClassType::getStaticClassData().Lock(); + throw Exception("investigate me! [DerivedClass]"); } HSQOBJECT& classObj = cd->classObj;