diff options
| author | Tyge Løvset <[email protected]> | 2022-08-08 12:26:17 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-08-08 12:26:17 +0200 |
| commit | 5f12ddba7bff04d4f1f5543ec908b9dd196e4f89 (patch) | |
| tree | cc0f382e338163a072b9c9479730ac06bf3fecad /docs | |
| parent | 7c9bae1867fd0df528ea80645855de00a4f4db76 (diff) | |
| download | STC-modified-5f12ddba7bff04d4f1f5543ec908b9dd196e4f89.tar.gz STC-modified-5f12ddba7bff04d4f1f5543ec908b9dd196e4f89.zip | |
Reverted a minor change in template.h
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/cmap_api.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/cmap_api.md b/docs/cmap_api.md index 28e5529c..91c36def 100644 --- a/docs/cmap_api.md +++ b/docs/cmap_api.md @@ -379,17 +379,18 @@ static inline RViking Viking_toraw(const Viking* vp) { #define i_key_bind Viking #define i_keyraw RViking #define i_keyfrom Viking_from +#define i_opt c_no_clone // disable map cloning #define i_hash(rp) (c_strhash(rp->name) ^ c_strhash(rp->country)) #define i_val int +#include <stc/cmap.h> /* - i_key_bind makes these defines, unless they are already defined: + i_key_bind sets up these defines, unless they are already defined: #define i_cmp RViking_cmp //#define i_hash RViking_hash // already defined above. - #define i_keyclone c_derived_keyclone // because i_keyfrom is defined. + //#define i_keyclone Viking_clone // not used because c_no_clone #define i_keyto Viking_toraw // because i_keyraw type is defined #define i_keydrop Viking_drop */ -#include <stc/cmap.h> int main() { |
