• Rusty Russell's avatar
    tal: support destructors with an extra argument. · 58277ab6
    Rusty Russell authored
    There are several times I've wanted an extra arg to the destructor, and had
    to embed it in the thing destroyed.  It's more efficient to put it into
    tal itself (since it allocates space anyway), but we make it conditional
    on a flag to avoid bloating every destructor.
    
    The infrastructure makes it easier to add an extra arg to the general
    notifiers later if we want.
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    58277ab6
tal.h 16 KB