lispgames / cl-sdl2

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

Add portability - use crossplatform float-features:with-float-traps-masked #164

Open Gleefre opened 1 year ago

Gleefre commented 1 year ago

Currently there is a macro without-fp-traps defined in sdl2.lisp, which disables signalling float point exceptions on sbcl only. That at the very least causes problems with loading sketch on ccl. The same functionality is defined in float-features library, but it also works on abcl, ccl, clasp, clisp, cmucl, ecl and mezzano.

This library is available in quicklisp and is already an indirect dependency of the #:sdl2/examples system (cl-opengl uses it).