]> git.ozlabs.org Git - ccan/blobdiff - ccan/tal/tal.h
tal: handle take() pointers more carefully.
[ccan] / ccan / tal / tal.h
index 865a696713c88d9243f64515200b49c7c164e554..e25dcb92985922acc5a50007f5c397ddb4aa9237 100644 (file)
@@ -106,6 +106,9 @@ void *tal_free(const tal_t *p);
  * This returns true on success (and may move *@p), or false on failure.
  * On success, tal_count() of *@p will be @count.
  *
  * This returns true on success (and may move *@p), or false on failure.
  * On success, tal_count() of *@p will be @count.
  *
+ * Note: if *p is take(), it will still be take() upon return, even if it
+ * has been moved.
+ *
  * Example:
  *     tal_resize(&p, 100);
  */
  * Example:
  *     tal_resize(&p, 100);
  */