9.43 __attribute__((nothrow)) function attribute

This function attribute asserts that a call to a function never results in a C++ exception being propagated from the call into the caller.

Note

This function attribute is a GNU compiler extension that the ARM compiler supports. It has the __declspec equivalent __declspec(nothrow).

Example

struct S
{
    ~S();
};
extern void f(void) __attribute__((nothrow));
void g(void)
{
    S s;
    f();
}
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.