Copying a snippet into HTML is where a documented language stops being the real one. Each block on the page is a program here with its recorded output beside it, and check.sh is what says the page is still true after a change.
8 lines
171 B
Plaintext
8 lines
171 B
Plaintext
(defstruct Vector2 [x f32 y f32])
|
|
|
|
(declare-c get-mouse-position [] Vector2 "GetMousePosition")
|
|
|
|
(defn main []
|
|
(print-f64 (f64 (.x (get-mouse-position))))
|
|
(newline))
|