summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-12-14 21:36:47 +0100
committerTyge Løvset <[email protected]>2021-12-14 21:36:47 +0100
commitc0949ad7193619eda7df29291d9e1166fecada63 (patch)
tree0b3e58379a275ca3e52c0049d773bac542f4f5d7 /examples
parent7f5a269d5a13ba39da7c2fa8e9bf45e77c5755c6 (diff)
downloadSTC-modified-c0949ad7193619eda7df29291d9e1166fecada63.tar.gz
STC-modified-c0949ad7193619eda7df29291d9e1166fecada63.zip
Small improvement of example box2.c.
Diffstat (limited to 'examples')
-rw-r--r--examples/box2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/box2.c b/examples/box2.c
index d65ae717..30fc5405 100644
--- a/examples/box2.c
+++ b/examples/box2.c
@@ -27,8 +27,9 @@ struct {
// Box in box:
#define i_val cbox_Point
-#define i_del(b) cbox_Point_del(b)
-#define i_opt c_no_compare|c_no_clone
+#define i_del(bp) cbox_Point_del(bp)
+#define i_from(b) cbox_Point_clone(b)
+#define i_opt c_no_compare
#define i_tag BoxPoint
#include <stc/cbox.h> // cbox_BoxPoint