zephyr/include/toolchain
Michael Hope 5f67a6119d include: improve compatibility with C++ apps.
This patch lets a C++ application use more of Zephyr by adding guards
and changeing some constructs to the C++11 equivalent.

Changes include:

- Adding guards
- Switching to static_assert
- Switching to a template for ARRAY_SIZE as g++ doesn't have the
  builtin.
- Re-ordering designated initialisers to match the struct field order
  as G++ only supports simple designated initialisers.

Signed-off-by: Michael Hope <mlhx@google.com>
2018-04-09 23:21:52 -04:00
..
common.h toolchain: gcc/common: add header guard 2018-02-10 11:14:32 -05:00
gcc.h include: improve compatibility with C++ apps. 2018-04-09 23:21:52 -04:00
xcc.h xcc: fix __in_section_unique() and __COUNTER__ 2017-08-16 10:59:10 -07:00