Welcome to the CHICKEN Scheme pasting service

shader-info-log added by megane on Mon Jun 17 08:06:33 2019


(defn get-shader-info
  (pre: (< 0 shader))
  no-inline:
  ?string
  [(shader : fixnum)]
  (let ([len (get-shader-iv shader gw:+info-log-length+)])
    (if (< 0 len)
        (let ([ret (make-string len #\a)])
          ((foreign-lambda* void ((int shader)
                                  (int len)
                                  ((scheme-pointer c-string) str))
                            "glGetShaderInfoLog (shader,len,0,str);")
           shader len ret)
          ;; (gw:get-shader-info-log shader len #f ret)
          ret)
        #f)))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the one-argument procedure to check if a list is empty?
Visually impaired? Let me spell it for you (wav file) download WAV