diff options
| author | Tyge Løvset <[email protected]> | 2020-06-22 21:49:17 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-06-22 21:49:17 +0200 |
| commit | 27772673dbd49ea74d79865fd0c837c5f6173f13 (patch) | |
| tree | ced8319691c78e9b737c29429ef97195bd2eb55b | |
| parent | 29034c539ed1ab5a1ce7060b3452728026928ef3 (diff) | |
| download | STC-modified-27772673dbd49ea74d79865fd0c837c5f6173f13.tar.gz STC-modified-27772673dbd49ea74d79865fd0c837c5f6173f13.zip | |
Update README.md
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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
|
