changed some log messages

This commit is contained in:
2022-08-31 14:17:48 +06:00
parent 37e8fdcd6a
commit 982a79a052
3 changed files with 7 additions and 3 deletions

View File

@@ -44,6 +44,7 @@ typedef enum{
kerepTypeDescriptorsState initState=NotInitialized;
void kerepTypeDescriptors_beginInit(){
printf("\e[94mtype descriptors initializing...\n");
__kerepTypeDescriptors=Autoarr_create(kerepTypeDescriptor, 256, 256);
if(__kerepTypeDescriptors==NULL) throw(ERR_NULLPTR);
}
@@ -52,14 +53,16 @@ void kerepTypeDescriptors_endInit(){
typeDescriptors=Autoarr_toArray(__kerepTypeDescriptors);
Autoarr_free(__kerepTypeDescriptors,true);
if(typeDescriptors==NULL) throw(ERR_NULLPTR);
printf("\e[92minitialized %u type descriptors\n", kerepTypeId_last);
}
void __kerepType_register(char* name, int16 size, void (*free_members)(void*)){
kerepTypeDescriptor typeDesc={
.name=name,
.size=size,
.free_members=free_members,
.id=++kerepTypeId_last
}; dbg(kerepTypeId_last);
};
Autoarr_add(__kerepTypeDescriptors, typeDesc);
}