Closed Gleefre closed 1 year ago
I have added the possibility to use the function in a live image by passing optional parameter T
.
So now (start t)
won't assume it is in the deployed environment, it won't run in the sdl's main thread e.t.c.
I can't think of any more improvements, so I'll make the pull request as ready.
I'll rewrite the define-start-function
macro and will open a new PR.
After thinking about https://github.com/vydd/sketch/issues/58 I have come up with
define-start-function
which can be used like this:Opening & closing other libraries (like
sdl2-mixer
):Under
sbcl
it can be saved to executable:Or it can be used with asdf:make (specify in
asdf:defsystem
). Withdeploy
:Or without:
And a simple
build.lisp
script:I'm not sure that this is a flexible way to define start function: this macro doesn't have a body and naming is not good as well. Probably
make-executable
could be added.Probable macro should be renamed: it shadows
kit.sdl2:define-start-function
right now.