Fixed examples for new includes pattern.
[cl-glfw.git] / examples / mthello.lisp
blob8f7e682adecc41f6daacd53529c19ed2d11ce486
1 (require '#:asdf)
2 (asdf:oos 'asdf:load-op '#:cl-glfw)
4 (cffi:defcallback hello-fun :void ((arg :pointer))
5 (declare (ignore arg))
6 (format t "Hello "))
8 (glfw:init)
9 (let ((thread (glfw:create-thread (cffi:callback hello-fun) (cffi:null-pointer))))
10 (glfw:wait-thread thread glfw:+wait+)
11 (format t "world~%"))
13 (glfw:terminate)