Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to generate sdl3 bindings. error during expansion of define-accessors #138

Open
benbot opened this issue Jan 22, 2025 · 0 comments
Open

Comments

@benbot
Copy link

benbot commented Jan 22, 2025

There's a macro expansion error with define-accessors it seems

; file: /home/benbot/dev/clame/ffi.lisp
; in: AUTOWRAP:C-INCLUDE (REL-PATH "./ffi/clibs.h")
;     (AUTOWRAP:C-INCLUDE (SDL3-FFI::REL-PATH "./ffi/clibs.h") :SPEC-PATH
;                         "./specs/")
; --> EVAL-WHEN 
; ==>
;   (AUTOWRAP:DEFINE-ACCESSORS (:UNION (SDL3-FFI::_X_EVENT))
;                              #<PACKAGE "SDL3-FFI">)
; 
; caught ERROR:
;   (during macroexpansion of (AUTOWRAP:DEFINE-ACCESSORS (:UNION #) ...))
;   invalid number of arguments: 0

; ==>
;   (AUTOWRAP:DEFINE-ACCESSORS SDL3-FFI::X-EVENT #<PACKAGE "SDL3-FFI">)
; 
; caught ERROR:
;   (during macroexpansion of (AUTOWRAP:DEFINE-ACCESSORS X-EVENT ...))
;   invalid number of arguments: 0

From what I can tell, c2ffi generates the spec files correctly, so this is probably an autowrap issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant