summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-08-08 12:26:17 +0200
committerTyge Løvset <[email protected]>2022-08-08 12:26:17 +0200
commit5f12ddba7bff04d4f1f5543ec908b9dd196e4f89 (patch)
treecc0f382e338163a072b9c9479730ac06bf3fecad /docs
parent7c9bae1867fd0df528ea80645855de00a4f4db76 (diff)
downloadSTC-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.md7
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()
{