Skip to content

borodust/claw

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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