### no_static_dtors

Controls the generation of static destructors in C++.

##### Syntax

#pragma no_static_dtors on | off | reset

##### Targets

All platforms.

##### Remarks

If you enable this pragma, the compiler does not generate destructor calls for static data objects. Use this pragma for smaller object code for C++ programs that never exit.

This pragma does not correspond to any panel setting. To check this setting, use __option (no_static_dtors), described in Checking Settings. The default setting is off.