(pretty-str arg)
  arg: any type
  returns a str
F

Converts GameLisp syntax into a string with appropriate whitespace.

This function behaves like str, except that additional whitespace may be inserted to make the output more readable.

; without pretty-printing
(when (> x 10) (prn "tested x") (prn "it was > 10"))

; with pretty-printing
(when (> x 10)
  (prn "tested x")
  (prn "it was > 10"))

GameLisp's pretty-printer is not yet gold standard, but it should be good enough for debugging.

template-str
int->str