[fetter-devel] #define not exported
JoeSB COE9
joesb.coe9 at gmail.com
Wed Oct 19 04:18:21 UTC 2005
Hi,
I was trying to use VZN to make binding for SDL and Opengl.
For SDL, VZN works fine, I can call function and get minimal window up.
But when I tried to generate binding for OpenGL. I have gor some
function but all value defined in #define are not exported; this is
not the case with SDL.
I come down to this minimal header file
// includeme.h
enum {
aaa,
bbb,
} yoy;
#define AN_DEF 1
And binding file
;; minimal.binding
(defbinding "minimal-library"
(flags "-ID:\\dev\\code\\lisp-systems\\sdl\\")
(include "includeme.h")
(export "")
(override ""))
And generate it with
(verrazano:create-binding
(verrazano:setup-build "d:\\dev\\tool\\gcc_xml\\bin\\gccxml.exe" #P"d:\\tmp\\")
"minimal.binding"
"minimal.lisp"
:cffi-backend
t)
--------------------
What i get was
;; Minimal.lisp
(defpackage "MINIMAL-LIBRARY" (:use #:CFFI) (:nicknames) (:export "$-0"))
(in-package "MINIMAL-LIBRARY")
(asdf:operate 'asdf:load-op 'verrazano-support)
(cffi:defcenum $-0 (:aaa 0) (:bbb 1))
(cl:progn)
-------------------
As you can see #define AN_DEF 1 is not in resulting binding code.
Please help.
More information about the fetter-devel
mailing list