claw
claw copied to clipboard
Common Lisp autowrapping facility for C and C++ libraries
CLAW
Still BETA quality. API is subject to change.
Common Lisp autowrapping facility for quickly creating clean&lean bindings to C/C++ libraries.
Usage for the brave
Building
To use claw you need:
Steps:
- Clone
claw,claw-utilsandcl-resectinto~/quicklisp/local-projects - Build
libresect.soby following instructions inlibresectrepo
Usage
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)