The __declspec(nothrow) attribute asserts
that a call to a function never results in a C++ exception being
propagated from the call into the caller.
The ARM library headers automatically add this qualifier to
declarations of C functions that, according to the ISO C Standard,
can never throw.
Usage
If the compiler knows that a function can never throw out,
it might be able to generate smaller exception-handling tables for
callers of that function.
Restrictions
If a call to a function results in a C++ exception being propagated
from the call into the caller, the behavior is undefined.
This modifier is ignored when not compiling with exceptions
enabled.
Example
struct S
{
~S();
};
__declspec(nothrow) extern void f(void);
void g(void)
{
S s;
f();
}
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.