Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/sys
hi,
openvswitch has the following CTASSERT equivalent, which doesn't
require __COUNTER__.
#define OFP_ASSERT(EXPR) \
extern int (*build_assert(void))[ sizeof(struct { \
unsigned int build_assert_failed : (EXPR) ? 1 : -1; })]
any comments from C lawyers?
YAMAMOTO Takashi
> Module Name: src
> Committed By: pooka
> Date: Wed Mar 6 18:16:58 UTC 2013
>
> Modified Files:
> src/sys/sys: ucontext.h
>
> Log Message:
> Move CTASSERT a few lines down so as to not collide with the CTASSERT
> in rtsock.c (relevant for compilers without __COUNTER__). Yes,
> it's a really cheap tweak. Tweak better if it tickles your tweakybone.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.17 -r1.18 src/sys/sys/ucontext.h
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
>
>
Home |
Main Index |
Thread Index |
Old Index