src/low-level/bearlibterminal.swig @ e0811ef78cce
Add `or` to `key-case`, change box borders, lib path
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 14 Oct 2017 13:03:30 -0400 |
parents |
8e35ed93d731 |
children |
da7d65a30255 |
%module bearlibterminal
%insert("lisphead") %{
(cl:in-package :bearlibterminal/low-level)
(cffi:defctype color :uint)
(cffi:define-foreign-library blt:bearlibterminal
(:darwin (:or "Contents/Resources/libBearLibTerminal.dylib"
"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"