diff --git a/src/base/types.c b/src/base/types.c index 6f08596..b96bdb6 100644 --- a/src/base/types.c +++ b/src/base/types.c @@ -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); } diff --git a/tests/main.cpp b/tests/main.cpp index 13abfcf..1f74e68 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -16,7 +16,7 @@ int main(){ kerepTypeDescriptors_beginInit(); kerepTypeDescriptors_initKerepTypes(); kerepTypeDescriptors_endInit(); - printf("\e[92mkerep tests are starting!\e[97m\n"); + printf("\e[97mkerep tests are starting!\n"); optime("test_all",1,test_all()); printf("\e[0m\n"); return 0; diff --git a/tests/test_searchtree.c b/tests/test_searchtree.c index b38ce7c..6309e85 100644 --- a/tests/test_searchtree.c +++ b/tests/test_searchtree.c @@ -6,8 +6,9 @@ void printstnode(STNode* node){ IFWIN("%llu", "%lu") "\n address: %p\n value: ",sizeof(STNode),node); printuni(node->value); + printf("\n"); // prints pointers to all existing branches - /* printf("\n branches: %p\n", node->branches); + /* printf(" branches: %p\n", node->branches); if(node->branches) for(uint8 i=0;i<8;i++){ printf(" \e[90m[%u]=%p\n",i,node->branches[i]); if(node->branches[i])