tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Make __CTASSERT1 true static assert

On Thu, Sep 19, 2019 at 01:41:42PM +0200, Kamil Rytarowski wrote:
> Our version of _CTASSERT does not work as static assert.

I am not sure what you mean here.

> #include <sys/cdefs.h>
> int main(int argc, char **argv) { __CTASSERT(argc < 0); return 0; }

I think this is an abuse of __CTASSERT and should not be supported.


Home | Main Index | Thread Index | Old Index