lispgames / cl-sdl2

Common Lisp bindings for SDL2 using C2FFI.
MIT License
304 stars 82 forks source link

Texture-access Enum keys have the last letter of their names chopped off #82

Closed PuercoPop closed 7 years ago

PuercoPop commented 7 years ago
> (ql:quickload :sdl2)

> (slot-value (slot-value (autowrap::require-type 'sdl2-ffi:sdl-texture-access "map value ~S of enum ~S to value")
                        'autowrap::type)
            'autowrap::values)
; => ((:STATI . 0) (:STREAMIN . 1) (:TARGE . 2))

Note this doesn't appear to be the case with other users.

mfiano commented 7 years ago

Can you please specify your host and implementation/version?

PuercoPop commented 7 years ago

I'm using SBCL, version 2a6ce7, which is from Nov 9, between versions 1.3.11-12. I can reproduce in CCL Version 1.12-dev-r16660 (LinuxX8664) as well.

Using ubuntu 16.04, sdl2 version 2.0.4 (Version: 2.0.4+dfsg1-2ubuntu2) and clang version 3.8.0-2ubuntu4.

mfiano commented 7 years ago

Hmm, I cannot reproduce this issue on SBCL 1.3.11, SDL2 2.0.5, and Linux. We'll have to wait for oGMo to address this I think.

PuercoPop commented 7 years ago

The issue was I had an old-version of cl-autowrap hanging around in local-projects