libffi: clean up the ABI enum
[cffi.git] / examples / main-example.lisp
blob59bad2fece865f20c1bbe43f94864954a2c88cfb
1 (in-package #:cffi-example)
3 (defcfun "puts" :int
4 "Put a string to standard output, return non-negative length output, or EOF"
5 (string :string))
7 (defun check-groveller ()
8 (assert (equal (list +a0+ +a1+ +a2+ +a3+ +a4+) '(2 4 8 16 32)))
9 (assert (equal (bn 1) 32)))
11 (defun entry-point ()
12 (when uiop:*command-line-arguments*
13 (uiop:format! t "Arguments: ~A~%" (uiop:escape-command uiop:*command-line-arguments*)))
14 (puts "hello, world!")
15 (check-groveller)
16 (uiop:finish-outputs)
17 (uiop:quit 0))