summaryrefslogtreecommitdiffhomepage
path: root/docs/csmap_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-06-01 10:33:00 +0200
committerTyge Løvset <[email protected]>2022-06-01 10:33:00 +0200
commitd7a19420e0aec71a2a840f68a54549c8a951f929 (patch)
treed804c815661c4e5ae9c2a67eeed85cfe0b819b55 /docs/csmap_api.md
parentc25b6d39f4ebbc1785108fd248b67fe9e8c95e92 (diff)
downloadSTC-modified-d7a19420e0aec71a2a840f68a54549c8a951f929.tar.gz
STC-modified-d7a19420e0aec71a2a840f68a54549c8a951f929.zip
Update docs regarding i_implement for cstr, cview, cbits, ...
Diffstat (limited to 'docs/csmap_api.md')
-rw-r--r--docs/csmap_api.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/csmap_api.md b/docs/csmap_api.md
index e19d0637..8e790eff 100644
--- a/docs/csmap_api.md
+++ b/docs/csmap_api.md
@@ -101,6 +101,9 @@ csmap_X_raw csmap_X_value_toraw(csmap_X_value* pval);
## Examples
```c
+#define i_implement
+#include <stc/cstr.h>
+
#define i_key_str // special macro for i_key = cstr, i_tag = str
#define i_val_str // ditto
#include <stc/csmap.h>
@@ -143,6 +146,7 @@ The HEX of color BLACK is:[#000000]
### Example 2
This example uses a csmap with cstr as mapped value.
```c
+#define i_implement
#include <stc/cstr.h>
#define i_key int