summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index 511f6838..39ffbdbf 100644
--- a/lib.h
+++ b/lib.h
@@ -204,6 +204,9 @@ struct cobj_ops {
cnum (*hash)(val self);
};
+#define cobj_ops_init(equal, print, destroy, mark, hash) \
+ { equal, print, destroy, mark, hash }
+
/* Default operations for above structure.
* Default equal is eq
*/