From 2d60e27e07f3c031416339a30472864fee689b92 Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Thu, 16 Sep 2021 15:06:49 -0500 Subject: [PATCH] Add void as a primitive type --- src/coffi/ffi.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coffi/ffi.clj b/src/coffi/ffi.clj index 1a9ff6d..4682e30 100644 --- a/src/coffi/ffi.clj +++ b/src/coffi/ffi.clj @@ -136,11 +136,11 @@ (def primitive-types "A set of keywords representing all the primitive types which may be passed to - native functions." + or returned from native functions." #{::byte ::short ::int ::long ::long-long ::char ::float ::double - ::pointer}) + ::pointer ::void}) (def c-prim-layout "Map of primitive type names to the [[CLinker]] types for a method handle."