ListInitWithDeepCopy
- Macro
- October 8, 2025
Table of Contents
ListInitWithDeepCopy
ListInitWithDeepCopy
Description
Initialize a list with copy init and deinit methods for maintaining a deep-copy.
Parameters
Name | Direction | Description |
---|---|---|
l | in | Pointer to list memory that needs to be initialized. |
ci | in | Copy init method. |
cd | in | Copy deinit method. |
Usage example (Cross-references)
- In
Init.h:14
:
/// Initialize a list with default arguments.
///
#define ListInit() ListInitWithDeepCopy(NULL, NULL)
///
- In
Init.h:39
:
#ifdef __cplusplus
# define ListInitWithDeepCopyT(l, ci, cd) (TYPE_OF(l) ListInitWithDeepCopy(ci, cd))
#else
///
- In
Init.h:48
:
/// cd[in] : Copy deinit method (for deiniting copied objects)
///
# define ListInitWithDeepCopyT(l, ci, cd) ((TYPE_OF(l))ListInitWithDeepCopy(ci, cd))
#endif