repo.or.cz
/
cl-glfw
/
jecs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Peter's gears translation.
[cl-glfw/jecs.git]
/
examples
/
mthello.lisp
blob
af51d699724e206340fb0da95fd821e155be16bf
1
(
require
'#:
asdf
)
2
(
asdf
:
oos
'
asdf
:
load-op
'#:
cl-glfw
)
3
4
(
cffi
:
defcallback hello-fun
:
void
((
arg
:
pointer
))
5
(
format
t
"Hello "
))
6
7
(
glfw
:
init
)
8
(
let
((
thread
(
glfw
:
create-thread
(
cffi
:
callback hello-fun
) (
cffi
:
null-pointer
))))
9
(
glfw
:
wait-thread thread glfw
:+
wait
+)
10
(
format
t
"world~%"
))
11
12
(
glfw
:
terminate
)