You copied the Doc URL to your clipboard.

__declspec(noinline)

The __declspec(noinline) attribute suppresses the inlining of a function at the call points of the function.

Note

  • The __declspec keyword is deprecated.
  • This __declspec attribute has the function attribute equivalent __attribute__((noinline)).

Example

/* Suppress inlining of foo() wherever foo() is called */
__declspec(noinline) int foo(void);