summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-06-22 21:49:17 +0200
committerGitHub <[email protected]>2020-06-22 21:49:17 +0200
commit27772673dbd49ea74d79865fd0c837c5f6173f13 (patch)
treeced8319691c78e9b737c29429ef97195bd2eb55b
parent29034c539ed1ab5a1ce7060b3452728026928ef3 (diff)
downloadSTC-modified-27772673dbd49ea74d79865fd0c837c5f6173f13.tar.gz
STC-modified-27772673dbd49ea74d79865fd0c837c5f6173f13.zip
Update README.md
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 0d551db4..6bbc5cf5 100644
--- a/README.md
+++ b/README.md
@@ -46,12 +46,12 @@ Installation
Because it is headers only, files can simply be included in your program. The functions will be inlined by default. If containers are extensively used accross many tranlation units with common instantiated container types, it is recommended to build as a library, to minimize executable size. To enable this mode, specify **-DSTC_HEADER** as compiler argument, and put all the instantiations of the containers used in one C file, e.g.
```
#define STC_IMPLEMENTATION
-#include <stc/cvector.h>
#include <stc/chash.h>
+#include <stc/cvector.h>
+declare_CHash(ii, MAP, int, int);
+declare_CHash(ix, SET, int64_t);
declare_CVector(i, int);
-declare_CHash(ii, map, int, int);
-declare_CHash(64, set, int64_t);
...
```
Performance