From 595073f84a77aee90d3b395553b60b41a7f68255 Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Fri, 17 Sep 2021 10:48:53 -0500 Subject: [PATCH] Ensure all pointers have a primitive type attached --- src/coffi/ffi.clj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/coffi/ffi.clj b/src/coffi/ffi.clj index 9b0b23e..1ce7b66 100644 --- a/src/coffi/ffi.clj +++ b/src/coffi/ffi.clj @@ -168,6 +168,10 @@ [type] (primitive-types type)) +(defmethod primitive-type ::pointer + [_type] + ::pointer) + (def c-prim-layout "Map of primitive type names to the [[CLinker]] types for a method handle." {::byte CLinker/C_CHAR