summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-12-12 22:28:19 +0100
committerTyge Løvset <[email protected]>2021-12-12 22:28:19 +0100
commit1bd66bde7a558cf2195a1241f4c5bd17fa3d856e (patch)
treedcfff4dbee3103757b89d5cd9e89c27cc716fb95 /examples
parentc8acb5c9dded30350f294e70b55c33ad177c2049 (diff)
downloadSTC-modified-1bd66bde7a558cf2195a1241f4c5bd17fa3d856e.tar.gz
STC-modified-1bd66bde7a558cf2195a1241f4c5bd17fa3d856e.zip
Commented out example with error.
Diffstat (limited to 'examples')
-rw-r--r--examples/ptr_elems.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/ptr_elems.c b/examples/ptr_elems.c
index 356de6ec..b16fd97a 100644
--- a/examples/ptr_elems.c
+++ b/examples/ptr_elems.c
@@ -13,6 +13,7 @@ struct { double x, y; } typedef Point;
#define i_tag pnt
#include <stc/cset.h>
+/*
// Map of int64 pointers: For fun, define valraw as int64_t for easy emplace call!
#define i_key_str
#define i_valraw int64_t
@@ -21,6 +22,7 @@ struct { double x, y; } typedef Point;
#define i_valfrom(raw) c_new(i_valraw, raw)
#define i_valto(x) **(x)
#include <stc/cmap.h>
+*/
int main()
{
@@ -45,6 +47,7 @@ int main()
puts("");
}
+/* // Need to check why this fails.
c_auto (cmap_str, map)
{
printf("\nMap with pointer elements:\n");
@@ -58,4 +61,5 @@ int main()
c_forpair (name, number, cmap_str, map)
printf("%s: %zd\n", _.name.str, *_.number);
}
+*/
}