On Sun, 2015-08-02 at 11:42 +0000, Bjoern A. Zeeb wrote:
> > On 02 Aug 2015, at 00:15 , John-Mark Gurney <j...@freebsd.org> wrote:
> > -CTASSERT(sizeof(struct sadb_x_policy) == 16);
> > +_Static_assert(sizeof(struct sadb_x_policy) == 16, "struct size mismatch");
> 
> 
> If this fires, how does it look like?  I am assuming the string at the end is 
> the error message?  If so and if the assertion is not printed that string 
> should be improved rather than being the same for all checks.
> 
> /bz
> 

It generates a compiler error, so the output is going to contain
file-and-line like any other compiler error, as well as the message from
the source code.

-- Ian


_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to