Fri, 07 Nov 2025 19:23:21 +0100
add warning, not to pass the same pointer multiple times to the clone functions
| docs/Writerside/topics/list.h.md | file | annotate | diff | comparison | revisions | |
| docs/Writerside/topics/map.h.md | file | annotate | diff | comparison | revisions |
--- 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
--- 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