macros for function declartion

This commit is contained in:
2020-08-02 15:43:52 +02:00
parent 14009a6e25
commit b141b10f70
6 changed files with 37 additions and 23 deletions

View File

@ -10,6 +10,8 @@ union acl_hashmap_meta {
};
};
/* set keySize to NULL for a dynamic keySize */
union acl_hashmap_meta* acl_hashmap_create(size_t bucketCount, size_t sizeOneElement, size_t keySize);
void acl_hashmap_put(union acl_hashmap_meta *hashmap_meta, void *key, void *element);
#define acl_hashmap_create_d union acl_hashmap_meta* acl_hashmap_create(size_t bucketCount, size_t sizeOneElement, size_t keySize)
acl_hashmap_create_d;
#define acl_hashmap_put_d void acl_hashmap_put(union acl_hashmap_meta *hashmap_meta, void *key, void *element)
acl_hashmap_put_d;
#endif