| 208 * |
208 * |
| 209 * Also calls the content destructor functions for each element, if specified. |
209 * Also calls the content destructor functions for each element, if specified. |
| 210 * |
210 * |
| 211 * @param map the map to be freed |
211 * @param map the map to be freed |
| 212 */ |
212 */ |
| 213 static inline void cxMapFree(CxMap *map) { |
213 void cxMapFree(CxMap *map); |
| 214 if (map == NULL) return; |
|
| 215 map->cl->deallocate(map); |
|
| 216 } |
|
| 217 |
214 |
| 218 |
215 |
| 219 /** |
216 /** |
| 220 * Clears a map by removing all elements. |
217 * Clears a map by removing all elements. |
| 221 * |
218 * |