Closed togekawa5 closed 3 years ago
I'm sorry, I forgot ~newline in format.
Another reason I thought it was a typo was because this raises an error. When I delete ~newline, that error no longer occurs.
I checked that this error does not occur with simple ~
newline in format ,for example (format t "a~
b").
My environment is windows10, sbcl2.1.6.
The debugger displayed the following.
; file: C:/Users/home/.roswell/lisp/quicklisp/local-projects/lispgames/cl-sdl2/src/render.lisp ; in: DEFMETHOD PRINT-OBJECT (SDL2-FFI:SDL-RENDERER-INFO T) ; (FORMAT STREAM ; "name ~S flags ~A num-texture-formats ~A texture-formats TBD max-texture-width ~ ; ~A max-texture-height ~A" ; (SDL2::RINFO :NAME) (SDL2::RINFO :FLAGS) ; (SDL2::RINFO :NUM-TEXTURE-FORMATS) (SDL2::RINFO :MAX-TEXTURE-WIDTH) ; (SDL2::RINFO :MAX-TEXTURE-HEIGHT)) ; ; caught ERROR: ; during macroexpansion of ; (FORMATTER ; "name ~S flags ~A num-texture-formats ~A texture-formats TBD max-texture-width ~ ; ~A max-texture-height ~A"). ; Use BREAK-ON-SIGNALS to intercept. ; ; error in FORMAT: Unknown directive (character: Return)
debugger invoked on a UIOP/LISP-BUILD:COMPILE-FILE-ERROR in thread
COMPILE-FILE-ERROR while compiling #<CL-SOURCE-FILE "sdl2" "render">
I loaded sdl2 on macOS as well, it was loaded without any problem. The environment is macOS Big Sur version 11.4, sbcl 2.1.5. I posted it in issue #143.
This was not a typo. The tilde newline directive was there for a reason.