Skip to content
Commit 034b4581 authored by Thiago Macieira's avatar Thiago Macieira Committed by Andrew Boie
Browse files

libc: Add support for static_assert



The C11 standard requires this. From 7.2 "Diagnostics <assert.h>"
paragraph 1:
> The header <assert.h> defines the assert and static_assert macros...

paragraph 3:
> The macro
>     static_assert
> expands to _Static_assert.

Since static_assert is a keyword in C++11, don't define it if C++.

Signed-off-by: default avatarThiago Macieira <thiago.macieira@intel.com>
parent eb7848a1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment