new object creation interface

This commit is contained in:
IlyaShurupov 2024-03-25 10:25:25 +03:00
parent c737f41d8a
commit e937d189df
23 changed files with 103 additions and 84 deletions

View file

@ -23,7 +23,7 @@ Object* ObjectMemAllocate(const ObjectType* type) {
object->down = nullptr;
object->flags = 0;
object->refc = (alni) 1;
object->references = (alni) 1;
if (bottom) {
bottom->down = object;
@ -69,7 +69,7 @@ void obj::assertNoLeaks() {
printf("ERROR : not all objects are destroyed\n");
ualni idx = 0;
for (Object* object = bottom; object; object = object->up) {
printf(" ===== Object - %llu. Ref count - %lli ===== \n", idx, object->refc);
printf(" ===== Object - %llu. Ref count - %lli ===== \n", idx, object->references);
logTypeData(object->type);
idx++;
}