From f3ee51ea117f0d68c75f7435d3b901b98ae193ac Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Fri, 17 Sep 2021 10:50:01 -0500 Subject: [PATCH] Expose find-symbol and allow named --- 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 d6d21a0..19e9324 100644 --- a/src/coffi/ffi.clj +++ b/src/coffi/ffi.clj @@ -477,10 +477,10 @@ [path] (System/load (.getAbsolutePath (io/file path)))) -(defn- find-symbol +(defn find-symbol "Gets the [[MemoryAddress]] of a symbol from the loaded libraries." [sym] - (.. (CLinker/systemLookup) (lookup sym) (orElse nil))) + (.. (CLinker/systemLookup) (lookup (name sym)) (orElse nil))) (defn- method-type "Gets the [[MethodType]] for a set of `args` and `ret` types."