From 218545feb74779cfe80786c90d486d3d5e68ed4b Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Tue, 28 Mar 2023 14:11:14 -0500 Subject: [PATCH] Fix bug where `defvar` and friends didn't work One function was private that didn't need to be since it was being used by the macros. This commit just makes it public. --- src/clj/coffi/ffi.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj/coffi/ffi.clj b/src/clj/coffi/ffi.clj index a455fe9..7c300b3 100644 --- a/src/clj/coffi/ffi.clj +++ b/src/clj/coffi/ffi.clj @@ -186,7 +186,7 @@ [handle args ret] (insn/new-instance (downcall-class args ret) ^MethodHandle handle)) -(defn- ensure-symbol +(defn ensure-symbol "Returns the argument if it is a [[MemorySegment]], otherwise calls [[find-symbol]] on it." ^MemorySegment [symbol-or-addr]