# HG changeset patch # User Mike Becker # Date 1762539801 -3600 # Node ID bba2e5efdca0ac2faacb6fb230b662236a40f50a # Parent 9170a7dff5736e8ddfd269fd78bbf20c0345efbe add warning, not to pass the same pointer multiple times to the clone functions diff -r 9170a7dff573 -r bba2e5efdca0 docs/Writerside/topics/list.h.md --- a/docs/Writerside/topics/list.h.md Fri Nov 07 19:13:28 2025 +0100 +++ b/docs/Writerside/topics/list.h.md Fri Nov 07 19:23:21 2025 +0100 @@ -413,6 +413,10 @@ > For example, you can clone elements from a list that is just storing pointers (`CX_STORE_POINTERS`) to a list that > allocates the memory for the objects (and vice versa). +> The lists passed to the above functions must all be different. +> Passing the same pointer for different list arguments may result in erroneous behavior. +>{style="warning"} + ## Dispose ```C diff -r 9170a7dff573 -r bba2e5efdca0 docs/Writerside/topics/map.h.md --- a/docs/Writerside/topics/map.h.md Fri Nov 07 19:13:28 2025 +0100 +++ b/docs/Writerside/topics/map.h.md Fri Nov 07 19:23:21 2025 +0100 @@ -356,6 +356,10 @@ > For example, you can clone entries from a map that is just storing pointers (`CX_STORE_POINTERS`) to a map that > allocates the memory for the objects (and vice versa). +> The maps passed to the above functions must all be different. +> Passing the same pointer for different map arguments may result in erroneous behavior. +>{style="warning"} + ## Dispose ```C