This is the mail archive of the gdb-patches@sourceware.org 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: [1/3] RFC: add static_assert macro


On Wednesday 16 November 2011 19:58:42, Tom Tromey wrote:
> In the absence of comments I plan to check this in.
> 
> This adds a static_assert macro to gdb_assert.h and changes some code in
> MI to use this rather than a runtime check.
> 
> I just noticed this in passing, and it seemed like a good cleanup.
> Static checks, when possible, are preferable to dynamic ones.

Looks like a good idea to me.

-- 
Pedro Alves


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