diff options
| author | Tyge Løvset <[email protected]> | 2022-05-05 14:05:25 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-05-05 14:05:25 +0200 |
| commit | dc08853f66e40a9a23c7f6b344d51254e10c628e (patch) | |
| tree | a2bdbbaba2e2d81c1fd09439bc5c2385d70f50e3 /include/stc/clist.h | |
| parent | 70551d3af9e30d75a6a6373787ff1432feebee26 (diff) | |
| download | STC-modified-dc08853f66e40a9a23c7f6b344d51254e10c628e.tar.gz STC-modified-dc08853f66e40a9a23c7f6b344d51254e10c628e.zip | |
Added type-checked c_container_of() macro using typeof (C23, gcc, clang, tcc). c_unchecked_container_of() must be used by lib.
Diffstat (limited to 'include/stc/clist.h')
| -rw-r--r-- | include/stc/clist.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/clist.h b/include/stc/clist.h index 05a7b58e..9b4560c7 100644 --- a/include/stc/clist.h +++ b/include/stc/clist.h @@ -64,7 +64,7 @@ SELF##_value value; \
}
-#define clist_node_(vp) c_container_of(vp, _cx_node, value)
+#define clist_node_(vp) c_unchecked_container_of(vp, _cx_node, value)
_c_clist_types(clist_VOID, int);
_c_clist_complete_types(clist_VOID, dummy);
|
