The “optimize” Pragma

Syntax

#pragma optimize ( "list" , state )

The list may be any number, including none, of the following single-character keywords: a, g, p, q, s, t, v, w and y. Anything else causes a warning (C4918) at level 4, but is otherwise ignored.

The required state may be either on or off. Anything else causes a warning (C4085) at level 1, and the pragma is then ignored.

It is an error (C2156) to place this pragma inside a function.