diff options
| author | Tyge Løvset <[email protected]> | 2020-12-30 11:17:30 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-12-30 11:17:30 +0100 |
| commit | 2b46410ef5bb28c4551cdd422c5e22731bd6b610 (patch) | |
| tree | 03408e3fb036ca610b81e2dccdbec9740605b074 /docs/cptr_api.md | |
| parent | e2de45078c5e668ed9fd0515eb8face9170b9f70 (diff) | |
| download | STC-modified-2b46410ef5bb28c4551cdd422c5e22731bd6b610.tar.gz STC-modified-2b46410ef5bb28c4551cdd422c5e22731bd6b610.zip | |
API change: Swapped destroy <-> compare function args in using_*() macros for cvec, cdeq, cptr and clist.
Diffstat (limited to 'docs/cptr_api.md')
| -rw-r--r-- | docs/cptr_api.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/cptr_api.md b/docs/cptr_api.md index 560db243..2d626fa8 100644 --- a/docs/cptr_api.md +++ b/docs/cptr_api.md @@ -7,11 +7,11 @@ This describes the API of the pointer type **cptr** and the shared pointer type ## Declaration ```c -#define using_cptr(X, Value, valueDestroy=c_default_del, - valueCompare=c_default_compare) +#define using_cptr(X, Value, valueCompare=c_default_compare, + valueDestroy=c_default_del) -#define using_csptr(X, Value, valueDestroy=c_default_del, - valueCompare=c_default_compare) +#define using_csptr(X, Value, valueCompare=c_default_compare, + valueDestroy=c_default_del) ``` The macro `using_cptr()` must be instantiated in the global scope. `X` is a type tag name and will affect the names of all cptr types and methods. E.g. declaring `using_cptr(my, cvec_my);`, |
