src/low-level/bearlibterminal.swig @ e95ecd878abd

Add crazy box example
author Steve Losh <steve@stevelosh.com>
date Fri, 07 Apr 2017 18:17:50 +0000
parents 05bcf3c72a27
children 8e35ed93d731
%module bearlibterminal

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

(cffi:defctype color :uint)

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

(cffi:use-foreign-library 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"