• Rusty Russell's avatar
    typesafe_cb: simplify, preserve namespace. · b0fa019a
    Rusty Russell authored
    Get rid of many variants, which were just confusing for most people.
    Keep typesafe_cb(), typesafe_cb_preargs() and typesafe_cb_postarts(),
    and rework cast_if_type() into typesafe_cb_cast() so we stay in our
    namespace.
    
    I should have done this as soon as I discovered the limitation that
    the types have to be defined if I want const-taking callbacks.
    b0fa019a
asearch.h 1.27 KB