diff options
| author | Tyge Løvset <[email protected]> | 2022-05-11 17:38:23 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-05-11 17:38:23 +0200 |
| commit | 4482966b231f49aaceedde42f6bf18c1f05818b6 (patch) | |
| tree | 56c18899d5ff756be4514fcfc550accde0776ab0 /include | |
| parent | 348c91ba479e276c12d00b3c8cd9dd4dd6346d92 (diff) | |
| download | STC-modified-4482966b231f49aaceedde42f6bf18c1f05818b6.tar.gz STC-modified-4482966b231f49aaceedde42f6bf18c1f05818b6.zip | |
Added i_less template param as alternative to i_cmp.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/template.h | 4 |
1 files changed, 4 insertions, 0 deletions
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
|
