diff options
author | Lars Knoll <lars.knoll@qt.io> | 2016-08-31 15:39:30 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2016-09-16 12:27:59 +0000 |
commit | 8d6f2e7e157d5778e37e54cd7e90c3185970abff (patch) | |
tree | c11af6badcfbbd9525a361d38c827a4b0ac8a87e /tests | |
parent | 31a63b69037c680101bf82a7161d4a0e5184dd86 (diff) |
Add a QT_REQUIRE_CONFIG(feature) macro
This macro expands into a static_assert and can be used to
trigger a compile error if a certain feature is not available
when trying to compile some code.
This is especially useful to protect against accidental inclusion
of headers that implement functionality related to a feature.
Change-Id: I456c55b989ce5f35f3af0e13c1886a85c23dfe29
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions