- HashTable* hashTable, ///< "this" pointer.
- size_t dataSize, ///< Size in bytes of a dictionary element.
+ HashTable* hashTable, ///< "this" pointer.
+ size_t dataSize, ///< Size in bytes of a dictionary element.
* Usage: HashTable* hashtable_new(<Type> type, UInt hash_size)
*/
#define hashtable_new(type, hsize) \
* Usage: HashTable* hashtable_new(<Type> type, UInt hash_size)
*/
#define hashtable_new(type, hsize) \
/**
* @brief Copy constructor (shallow copy, ok for basic types).
*/
HashTable* hashtable_copy(
/**
* @brief Copy constructor (shallow copy, ok for basic types).
*/
HashTable* hashtable_copy(
- HashTable* hashTable, ///< "this" pointer.
- char* key ///< Key of the element to retrieve.
+ HashTable* hashTable, ///< "this" pointer.
+ char* key ///< Key of the element to retrieve.
- void* pData = _hashtable_get(hashTable, key); \
- data = *((typeof(&data))pData); \
+ void* pData = _hashtable_get(hashTable, key); \
+ data = *((typeof(&data))pData); \
- HashTable* hashTable, ///< "this" pointer.
- char* key, ///< Key of the element to add or modify.
- void* data ///< Pointer to new data at given key.
+ HashTable* hashTable, ///< "this" pointer.
+ char* key, ///< Key of the element to add or modify.
+ void* data ///< Pointer to new data at given key.
- typeof((data)) tmp = data; \
- _hashtable_set(hashTable, key, &tmp); \
+ typeof((data)) tmp = data; \
+ _hashtable_set(hashTable, key, &tmp); \