1
0
Fork 0

HashMap: Add properties for certain functions

master
an 2017-04-06 07:47:44 -04:00
parent 0446080176
commit 84be5c83a2
1 changed files with 10 additions and 0 deletions

View File

@ -38,6 +38,12 @@
wchar_t: Lth_HashMapFind_hash, \
int: Lth_HashMapFind_hash)((map), (expr))
// Static Functions ----------------------------------------------------------|
static inline void Lth_HashMapDestroy(struct Lth_HashMap *map);
static inline void Lth_HashMapAlloc(struct Lth_HashMap *map, size_t count);
static inline void Lth_HashMapBuild(struct Lth_HashMap *map);
// Type Definitions ----------------------------------------------------------|
@ -64,6 +70,10 @@ typedef struct Lth_HashMap
{
Lth_HashMapElem **table;
Lth_Vector(Lth_HashMapElem) elem;
__prop destroy {call: Lth_HashMapDestroy(this)}
__prop alloc {call: Lth_HashMapAlloc (this)}
__prop build {call: Lth_HashMapBuild (this)}
} Lth_HashMap;