From 4482966b231f49aaceedde42f6bf18c1f05818b6 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 11 May 2022 17:38:23 +0200 Subject: Added i_less template param as alternative to i_cmp. --- include/stc/template.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/stc/template.h b/include/stc/template.h index 1c38616e..2082d509 100644 --- a/include/stc/template.h +++ b/include/stc/template.h @@ -174,6 +174,9 @@ #ifndef i_keydrop #define i_keydrop c_default_drop #endif +#ifdef i_less + #define i_cmp(x, y) c_less_cmp(i_less, x, y) +#endif #if !defined i_eq && defined i_cmp #define i_eq(x, y) !(i_cmp(x, y)) #elif !defined i_eq @@ -265,6 +268,7 @@ #undef i_tag #undef i_imp #undef i_opt +#undef i_less #undef i_cmp #undef i_eq #undef i_hash -- cgit v1.2.3