Re: [PATCH v5 9/9] bug.h, compiler.h: Introduce compiletime_assert & BUILD_BUG_ON_MSG

2012-11-16 Thread Daniel Santos
On 11/13/2012 04:13 PM, danielfsan...@att.net wrote: > +#define __compiletime_assert(condition, msg, __func) \ > + do {\ > + bool __cond = !(condition); \ > + extern

Re: [PATCH v5 9/9] bug.h, compiler.h: Introduce compiletime_assert BUILD_BUG_ON_MSG

2012-11-16 Thread Daniel Santos
On 11/13/2012 04:13 PM, danielfsan...@att.net wrote: +#define __compiletime_assert(condition, msg, __func) \ + do {\ + bool __cond = !(condition); \ + extern void

Re: [PATCH v5 9/9] bug.h, compiler.h: Introduce compiletime_assert & BUILD_BUG_ON_MSG

2012-11-15 Thread Borislav Petkov
On Tue, Nov 13, 2012 at 04:13:41PM -0600, danielfsan...@att.net wrote: > Introduce compiletime_assert to compiler.h, which moves the details of > how to break a build and emit an error message for a specific compiler > to the headers where these details should be. Following the tradition of > the

Re: [PATCH v5 9/9] bug.h, compiler.h: Introduce compiletime_assert BUILD_BUG_ON_MSG

2012-11-15 Thread Borislav Petkov
On Tue, Nov 13, 2012 at 04:13:41PM -0600, danielfsan...@att.net wrote: Introduce compiletime_assert to compiler.h, which moves the details of how to break a build and emit an error message for a specific compiler to the headers where these details should be. Following the tradition of the

[PATCH v5 9/9] bug.h, compiler.h: Introduce compiletime_assert & BUILD_BUG_ON_MSG

2012-11-13 Thread danielfsantos
Introduce compiletime_assert to compiler.h, which moves the details of how to break a build and emit an error message for a specific compiler to the headers where these details should be. Following the tradition of the POSIX assert macro, compiletime_assert creates a build-time error when the

[PATCH v5 9/9] bug.h, compiler.h: Introduce compiletime_assert BUILD_BUG_ON_MSG

2012-11-13 Thread danielfsantos
Introduce compiletime_assert to compiler.h, which moves the details of how to break a build and emit an error message for a specific compiler to the headers where these details should be. Following the tradition of the POSIX assert macro, compiletime_assert creates a build-time error when the