src/low-level/bearlibterminal.swig @ 8e35ed93d731

Expose `clear-layer`, add format args to `set`, fuck with CFFI, clean up box drawing
author Steve Losh <steve@stevelosh.com>
date Tue, 04 Jul 2017 13:24:51 +0000
parents 05bcf3c72a27
children e0811ef78cce
%module bearlibterminal

%insert("lisphead") %{
(cl:in-package :bearlibterminal/low-level)

(cffi:defctype color :uint)

(cffi:define-foreign-library blt:bearlibterminal
  (:darwin (:or "Contents/Frameworks/libBearLibTerminal.dylib"
                "lib/libBearLibTerminal.dylib")))

(cffi:use-foreign-library blt:bearlibterminal)
%}

%feature("intern_function","1");
%feature("export");

%typemap(cin)  color_t "color";
%typemap(cout) color_t "color";

%typemap(cin)  int8_t* ":string";
%typemap(cout) int8_t* ":string";

%include "src/low-level/include/BearLibTerminal.h"