This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit] Add "struct exception"


> Date: Wed, 12 Jan 2005 18:57:52 -0500
> From: Andrew Cagney <cagney@gnu.org>
> 
> clash, callers updated).   This lets users write a rough equivalent:
> 
>    struct exception e = catch_exceptions (....)
>    switch (exception.reason)

Please don't call it ``struct exception'', as that clashes with the
same struct defined by math.h and used by library function `matherr',
and would not compile in C++ at all.

Something like ``struct gdb_exception'' would probably be better.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]