From 53a84357688de8aac72ffc0ecccd67871d453332 Mon Sep 17 00:00:00 2001 From: Kristin Rutenkolk Date: Sun, 13 Oct 2024 22:08:01 +0200 Subject: [PATCH] add pprint impl for struct types --- src/clj/coffi/mem.clj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/clj/coffi/mem.clj b/src/clj/coffi/mem.clj index 2f0a524..f0f75dc 100644 --- a/src/clj/coffi/mem.clj +++ b/src/clj/coffi/mem.clj @@ -1780,6 +1780,7 @@ ~(first (generate-deserialize coffi-typename 0))) (defmethod serialize-into ~coffi-typename ~[(with-meta 'source-obj {:tag typename}) '_type 'segment '_] ~(generate-serialize coffi-typename (with-meta 'source-obj {:tag typename}) 0)) + (defmethod clojure.pprint/simple-dispatch ~typename [~'obj] (clojure.pprint/simple-dispatch (into {} ~'obj))) ) ) )