summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-07-03 07:22:25 +0200
committerTyge Løvset <[email protected]>2023-07-03 07:22:25 +0200
commit433e6fd36912d1c584fbf206f99a3a982b29e9dc (patch)
tree0c96c742264152f2f5b85ae8a0933a4de8c08043 /include
parente25dec033773ab713a7593a923e2c83745be0b9a (diff)
downloadSTC-modified-433e6fd36912d1c584fbf206f99a3a982b29e9dc.tar.gz
STC-modified-433e6fd36912d1c584fbf206f99a3a982b29e9dc.zip
Simplified extend.h a bit.
Diffstat (limited to 'include')
-rw-r--r--include/stc/extend.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/stc/extend.h b/include/stc/extend.h
index f9ac92bf..c0a00ff8 100644
--- a/include/stc/extend.h
+++ b/include/stc/extend.h
@@ -54,7 +54,10 @@ typedef struct {
i_type get;
} c_PASTE(i_type, _ext);
-#define c_extend(self) c_container_of(self, _cx_MEMB(_ext), get)
+#define c_extend() c_container_of(self, _cx_MEMB(_ext), get)
+// Note: i_less: c_extend() accessible for cpque types
+// i_cmp: c_extend() accessible for csmap and csset types
+// i_hash/i_eq: c_extend() accessible for cmap and cset types
#define i_is_forward
#define _i_inc <stc/i_base.h>