summaryrefslogtreecommitdiffhomepage
path: root/README.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 /README.md
parentc25b6d39f4ebbc1785108fd248b67fe9e8c95e92 (diff)
downloadSTC-modified-d7a19420e0aec71a2a840f68a54549c8a951f929.tar.gz
STC-modified-d7a19420e0aec71a2a840f68a54549c8a951f929.zip
Update docs regarding i_implement for cstr, cview, cbits, ...
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index c0246582..f567e3b9 100644
--- a/README.md
+++ b/README.md
@@ -257,6 +257,7 @@ You may also cherry-pick external linking mode on individual containers by `#def
```c
// stc_libs.c
#define STC_IMPLEMENT
+
#include <stc/cstr.h>
#include "Point.h"
@@ -346,6 +347,9 @@ Strings are the most commonly used non-trivial data type. STC containers have pr
definitions for cstr container elements, so they are fail-safe to use both with the **emplace**
and non-emplace methods:
```c
+#define i_implement // define in ONE file to implement longer functions in cstr
+#include <stc/cstr.h>
+
#define i_val_str // special macro to enable container of cstr
#include <stc/cvec.h> // vector of string (cstr)
...