• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2017 Rene Rivera
2# Distributed under the Boost Software License, Version 1.0.
3# (See accompanying file LICENSE_1_0.txt or copy at
4# http://www.boost.org/LICENSE_1_0.txt)
5
6# TODO: Documentation.
7
8import feature ;
9
10#| tag::doc[]
11
12[[bbv2.builtin.features.exception-handling]]`exception-handling`::
13*Allowed values:* `on`, `off`.
14+
15Disables exceptions.
16
17|# # end::doc[]
18
19feature.feature exception-handling
20    : on off
21    : propagated ;
22
23#| tag::asynch-doc[]
24
25[[bbv2.builtin.features.asynch-exceptions]]`asynch-exceptions`::
26*Allowed values:* `off`, `on`.
27+
28Selects whether there is support for asynchronous EH (e.g. catching SEGVs).
29
30|# # end::asynch-doc[]
31
32feature.feature asynch-exceptions
33    : off on
34    : propagated ;
35
36#| tag::doc[]
37
38[[bbv2.builtin.features.extern-c-nothrow]]`extern-c-nothrow`::
39*Allowed values:* `off`, `on`.
40+
41Selects whether all `extern "C"` functions are considered `nothrow` by default.
42
43|# # end::doc[]
44
45feature.feature extern-c-nothrow
46    : off on
47    : propagated ;
48