Still BETA quality. API is subject to change.
Common Lisp autowrapping facility for quickly creating clean&lean bindings to C/C++ libraries.
To use claw
you need:
Steps:
- Clone
claw
,claw-utils
andcl-resect
into~/quicklisp/local-projects
- Build
libresect.so
by following instructions inlibresect
repo
claw
(libclang
actually) has known problems on SBCL
, so CCL
recommended. You only need CCL
to generate bindings. After that, generated
bindings can be used anywhere CFFI
works.
In repl:
;; preload libresect.so
(pushnew :claw-regen-adapter *features*)
(ql:quickload :cffi)
(cffi:load-foreign-library "<path-to>/libresect/build/resect/libresect.so")
Now you can tinker with existing wrappers to play with claw
beta version
E.g. claw-olm
(ql:quickload :claw-olm/wrapper)
(claw:load-wrapper :claw-olm/wrapper)