[Mono-dev] [Mono-patches] r153961 - trunk/mono/mono/metadata

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Sun Mar 21 21:27:21 EDT 2010


On Sun, 2010-03-21 at 23:54 +0100, Andreas Färber wrote:
> Hi Gonzalo,
> 
> Am 21.03.2010 um 23:30 schrieb Gonzalo Paniagua Javier:
> 
> > I would just #ifdef out the entire case statement so if that  
> > protocol is
> > used by any program and is not supported, the program will get the
> > appropriate exception.
> 
> family is assigned the default value of -1. This will happen either way.
> The difference is that this way this happens silently, while  
> #ifdef'ing out the whole case will jump into the default section and  
> print a g_warning about an "unknown" value.

Oh, then that -1 should already be enough.
Thanks.

-Gonzalo




More information about the Mono-devel-list mailing list