commit | 5f67a6119dfb1a83c039df81cb4884a3fd18c1dc | [log] [tgz] |
---|---|---|
author | Michael Hope <mlhx@google.com> | Sat Mar 17 12:44:40 2018 +0100 |
committer | Anas Nashif <nashif@linux.intel.com> | Mon Apr 09 23:21:52 2018 -0400 |
tree | ceff6f1104ba4e15114d65a8e5d2f5297339380a | |
parent | 835ee3fff04b7c1bdff65fb661a5d4d521e6e64c [diff] |
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>