Commit Graph

3 Commits

Author SHA1 Message Date
Wyatt Hepler
ac6cdf261e pw_polyfill: Provide the static_assert macro in C
In C11, assert.h is supposed to define static_assert as a convenience
alias for _Static_assert. Add a wrapper that defines static_assert if
the system header didn't.

Change-Id: Ibcc7d32517388fcb6284bb8b99fc96c76860b063
2020-01-24 23:06:23 +00:00
Wyatt Hepler
818e3316a4 pw_polyfill: C++11 and C++14 unit tests
Change-Id: I1a1ced2ed59a3d7dcf46c4c6a0e2e04485502fba
2020-01-17 09:06:30 -08:00
Wyatt Hepler
c542a5d6f7 pw_polyfill: Backports for C++11 and C++14
- The pw_polyfill module brings some C++17 features to C++11 and C++14.
- The module's overrides are added to the GN build to seamlessly
  support older C++ standards.

Change-Id: Icb29772073e681e1ef868561bdde56e629e9c0d9
2020-01-17 09:04:49 -08:00