X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Forder%2Forder.h;h=23f030b2c8c1e9e3e50751ec275f3a882eb3daec;hb=HEAD;hp=edceab5551e2e68dd14bee39bf7ac4a12663841b;hpb=37825438b65879dad1a343b45bb5ce9fc37ba8e7;p=ccan diff --git a/ccan/order/order.h b/ccan/order/order.h index edceab55..23f030b2 100644 --- a/ccan/order/order.h +++ b/ccan/order/order.h @@ -31,6 +31,9 @@ struct _total_order { _ctx ctx; \ } _name +#define total_order_cmp(_order, _a, _b) \ + ((_order).cb((_a), (_b), (_order).ctx)) + #define _DECL_ONAME(_oname, _itype) \ extern int _order_##_oname(const void *, const void *, void *); \ extern int order_##_oname(const _itype *, const _itype *, void *); \