src/cx/map.h

changeset 553
8f7d3e7b5b93
parent 551
2946e13c89a4
child 555
d79fbd028e26
equal deleted inserted replaced
552:4373c2a90066 553:8f7d3e7b5b93
188 * @param map the map 188 * @param map the map
189 * @param key the key 189 * @param key the key
190 * @return the value 190 * @return the value
191 */ 191 */
192 __attribute__((__nonnull__, __warn_unused_result__)) 192 __attribute__((__nonnull__, __warn_unused_result__))
193 void *cxMapGet( 193 static inline void *cxMapGet(
194 CxMap const *map, 194 CxMap const *map,
195 CxDataPtr key 195 CxDataPtr key
196 ) { 196 ) {
197 return map->cl->get(map, key); 197 return map->cl->get(map, key);
198 } 198 }
203 * @param map the map 203 * @param map the map
204 * @param key the key 204 * @param key the key
205 * @return the removed value 205 * @return the removed value
206 */ 206 */
207 __attribute__((__nonnull__, __warn_unused_result__)) 207 __attribute__((__nonnull__, __warn_unused_result__))
208 void *cxMapRemove( 208 static inline void *cxMapRemove(
209 CxMap *map, 209 CxMap *map,
210 CxDataPtr key 210 CxDataPtr key
211 ) { 211 ) {
212 return map->cl->remove(map, key); 212 return map->cl->remove(map, key);
213 } 213 }

mercurial