Skip to content
/ claw Public

Common Lisp autowrapping facility for C and C++ libraries

License

Notifications You must be signed in to change notification settings

borodust/claw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-utils and cl-resect into ~/quicklisp/local-projects
  • Build libresect.so by following instructions in libresect repo

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)

About

Common Lisp autowrapping facility for C and C++ libraries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published