Re: style(9) question

From: Dmitry Pryanishnikov <dmitry_at_atlantis.dp.ua>
Date: Fri, 3 Mar 2006 10:08:58 +0200 (EET)
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
Received on Fri Mar 03 2006 - 07:09:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:53 UTC