Started making object creation work

This commit is contained in:
vegowotenks 2024-10-18 17:00:09 +02:00
parent e8410e9464
commit 1e9dbd3018
7 changed files with 43 additions and 0 deletions

View file

@ -43,3 +43,8 @@ int ObjectType_DefinePrimitiveAttribute(ObjectType* self, enum ValueType attribu
};
return HashMap_Put(&self->attributes, attribute_name.source, attribute_name.length, &attribute);
}
size_t ObjectType_GetAttributeCount(ObjectType* self)
{
return HashMap_Size(&self->attributes);
}