src/cx/collection.h

changeset 1675
36c0fb2b60b2
parent 1631
74c6582adabb
equal deleted inserted replaced
1674:8b0f162ac88e 1675:36c0fb2b60b2
38 38
39 #include "allocator.h" 39 #include "allocator.h"
40 #include "iterator.h" 40 #include "iterator.h"
41 #include "compare.h" 41 #include "compare.h"
42 42
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46
47 /** 43 /**
48 * Special constant used for creating collections that are storing pointers. 44 * Special constant used for creating collections that are storing pointers.
49 */ 45 */
50 #define CX_STORE_POINTERS 0 46 #define CX_STORE_POINTERS 0
51 47
314 */ 310 */
315 #define cx_invoke_destructor(c, e) \ 311 #define cx_invoke_destructor(c, e) \
316 if ((c)->collection.simple_destructor) cx_invoke_simple_destructor(c,e); \ 312 if ((c)->collection.simple_destructor) cx_invoke_simple_destructor(c,e); \
317 if ((c)->collection.advanced_destructor) cx_invoke_advanced_destructor(c,e) 313 if ((c)->collection.advanced_destructor) cx_invoke_advanced_destructor(c,e)
318 314
319 #ifdef __cplusplus
320 } // extern "C"
321 #endif
322
323 #endif // UCX_COLLECTION_H 315 #endif // UCX_COLLECTION_H

mercurial