RE: [PATCH 1/1] fport_print: handle ttyname ENODEV

[email protected]
Newsgroups gmane.lisp.guile.devel
Message-ID <b206d54229e9295045c327287fa9efec077ddc19@webmail>
From: "Maxime Devos" 

	> I’ve seen do { body; } while (0) in some places (albeit not in
SCM_SYSCALL), which you might want investigate and maybe copy (instead
of the { body; }), but I don’t know what the purpose of that
construct is.It's a way of turning a block into a statement. So you
can use it in an if statement like:

#define MACRO() do { ... } while (0)
if (...) MACRO(); else ....

If the macro expanded to a block, it would make everyone unhappy.

-Dale
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.