X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftal%2Ftal.h;fp=ccan%2Ftal%2Ftal.h;h=8b7ffca5ea8125ef8ba36a623d989e8aad6fff33;hp=e25dcb92985922acc5a50007f5c397ddb4aa9237;hb=c910bdce167ff42aa6d9e4f1b8f905a76f0b9e75;hpb=4f20b75c6133425f2b8c369bb1ecfbd7d3410353 diff --git a/ccan/tal/tal.h b/ccan/tal/tal.h index e25dcb92..8b7ffca5 100644 --- a/ccan/tal/tal.h +++ b/ccan/tal/tal.h @@ -164,7 +164,8 @@ void *tal_free(const tal_t *p); * @function: the function to call before it's freed. * * If @function has not been successfully added as a destructor, this returns - * false. + * false. Note that if we're inside the destructor call itself, this will + * return false. */ #define tal_del_destructor(ptr, function) \ tal_del_destructor_((ptr), typesafe_cb(void, void *, (function), (ptr))) @@ -195,7 +196,8 @@ void *tal_free(const tal_t *p); * @function: the function to call before it's freed. * * If @function has not been successfully added as a destructor, this returns - * false. + * false. Note that if we're inside the destructor call itself, this will + * return false. */ #define tal_del_destructor(ptr, function) \ tal_del_destructor_((ptr), typesafe_cb(void, void *, (function), (ptr)))