This commit is contained in:
Ilusha 2024-03-14 09:00:14 +03:00 committed by Ilya Shurupov
parent 101ef375ef
commit 5c7ee99d43
32 changed files with 232 additions and 2023 deletions

View file

@ -11,6 +11,7 @@ bool uninit_flag = false;
void NullObject::uninit() {
uninit_flag = true;
NDO->destroy(NdoNull_globalInstance);
NdoNull_globalInstance = nullptr;
}
void NullObject::destructor(Object* self) { DEBUG_ASSERT(uninit_flag && "Only one the instance of NullObject exists and thus it can't be destroyed"); }