diff options
| author | Tyge Løvset <[email protected]> | 2022-10-19 15:30:20 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-10-19 15:30:20 +0200 |
| commit | bb3a457e5c2c9e6b069ab3dfba10f9d21686b035 (patch) | |
| tree | 5e0947fbf0be670f569595a2dbc28f24938e18c6 /docs/carc_api.md | |
| parent | 4c643c261e124460e6b7c41a9cf67c66a4213189 (diff) | |
| download | STC-modified-bb3a457e5c2c9e6b069ab3dfba10f9d21686b035.tar.gz STC-modified-bb3a457e5c2c9e6b069ab3dfba10f9d21686b035.zip | |
- Removed deprecated carc_make and cbox_make (replaced by carc_from, cbox_from)
- Some improvements to template.h
- Many smaller improvements to examples and docs.
Diffstat (limited to 'docs/carc_api.md')
| -rw-r--r-- | docs/carc_api.md | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/docs/carc_api.md b/docs/carc_api.md index fd20ad01..08070889 100644 --- a/docs/carc_api.md +++ b/docs/carc_api.md @@ -84,15 +84,12 @@ bool carc_X_value_eq(const i_val* x, const i_val* y); #include <stc/csmap.h> #define i_type Arc // (atomic) ref. counted pointer -#define i_val Map -#define i_valclone Map_clone -// override Map_drop(p): -#define i_valdrop(p) (printf("drop Arc:\n"), Map_drop(p)) -#define i_opt c_no_atomic // make it non-atomic sharing. +#define i_val_bind Map // Note i_val_bind: Map is a "class", i.e. has clone, drop functions. +#define i_valdrop(p) (printf("drop Arc:\n"), Map_drop(p)) // override Map_drop(p): #include <stc/carc.h> #define i_type Stack -#define i_val_arcbox Arc // NB: define i_val_arcbox for carc or cbox value-type +#define i_val_arcbox Arc // Note: use i_val_arcbox for carc or cbox value types #include <stc/cstack.h> int main() |
