forked from alex-eg/sex
begin -> do
Shorter and doesn't imply existence of `end'
This commit is contained in:
@@ -128,7 +128,7 @@ return Sex code.
|
||||
#+begin_src scheme
|
||||
(pub defmacro (check-sdl-return call message ret-code)
|
||||
`(if (< 0 ,call)
|
||||
(begin
|
||||
(do
|
||||
(puts ,message)
|
||||
(return ,ret-code))))
|
||||
|
||||
@@ -141,7 +141,7 @@ return Sex code.
|
||||
#+begin_src scheme
|
||||
(pub fn init () int
|
||||
(if (< 0 (SDL_Init SDL_INIT_VIDEO))
|
||||
(begin (puts "Failed to initialize SDL") (return 1)))
|
||||
(do (puts "Failed to initialize SDL") (return 1)))
|
||||
...)
|
||||
#+end_src
|
||||
|
||||
|
||||
Reference in New Issue
Block a user