Skip to content

Commit

Permalink
Make it easier to run and connect with the repl.
Browse files Browse the repository at this point in the history
  • Loading branch information
ellisvelo committed Nov 10, 2020
1 parent 52f8924 commit 04f602c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sdl2-tutorial.lisp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
(defpackage :sdl2-tutorial
(:use cl bt)
(:export :main :create-swank-server))

(in-package :sdl2-tutorial)

(defun create-swank-server()
(bt:make-thread (lambda () (swank:create-server :port 4005 :dont-close t))))

(defun main(fn)
(sdl2:make-this-thread-main fn))

0 comments on commit 04f602c

Please sign in to comment.