diff --git a/CHANGELOG.md b/CHANGELOG.md index cca4903..d783256 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change Log All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/). +## [0.1.176] - 2021-09-29 +### Fixed +- Usage of `defcfn` without a docstring produced an invalid `def` form + ## [0.1.169] - 2021-09-28 ### Added - Macro for easily wrapping native functions with arbitrary logic @@ -11,4 +15,5 @@ All notable changes to this project will be documented in this file. This change - Support for serializing and deserializing arbitrary Clojure functions - Support for serializing and deserializing arbitrary Clojure data structures +[Unreleased]: https://github.com/IGJoshua/coffi/compare/v0.1.169...HEAD [0.1.169]: https://github.com/IGJoshua/coffi/compare/16f56bc31d69142ec4d2fb61b15b069d78b127ca...v0.1.169 diff --git a/README.md b/README.md index cd75f9d..614508e 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ This library is available on Clojars. Add one of the following entries to the `:deps` key of your `deps.edn`: ```clojure -org.suskalo/coffi {:mvn/version "0.1.169"} +org.suskalo/coffi {:mvn/version "0.1.176"} io.github.IGJoshua/coffi {:git/tag "v0.1.169" :git/sha "7ec2748"} ``` diff --git a/src/clj/coffi/ffi.clj b/src/clj/coffi/ffi.clj index 1d9c544..4c966e6 100644 --- a/src/clj/coffi/ffi.clj +++ b/src/clj/coffi/ffi.clj @@ -579,7 +579,8 @@ (mapv (comp symbol name) (:native-arglist args))))))) (:attr-map args))) - ~@(list (:doc args)) + ~@(when-let [doc (:doc args)] + (list doc)) fun#)))) (s/fdef defcfn :args ::defcfn-args)