style(9) question

Dmitry Pryanishnikov dmitry at atlantis.dp.ua
Fri Mar 3 08:09:26 GMT 2006


Hello!

On Fri, 3 Mar 2006, Greg 'groggy' Lehey wrote:
>> Before 'void' existed, many people recommended () so that you could
>> make 'return' a macro for extra debugging.  With void functions that
>> have naked returns make this impossible these days...
>
> This is actually a useful property.  Pity it's gone.

  It's gone only for void functions. Anyway programmer usually wants to debug
code on function-by-function basis, and one can still #define return macros
for one (non-void) function and #undef it after this function.


Sincerely, Dmitry
-- 
Atlantis ISP, System Administrator
e-mail:  dmitry at atlantis.dp.ua
nic-hdl: LYNX-RIPE


More information about the freebsd-current mailing list