Which is equivalent to __OPTIMIZE__ in visual studio

In GCC, we have a macro __OPTIMIZE__defined when the compiler is configured to optimize the code. Is there an equivalent macro in Visual Studio?

+4
source share
1 answer

In its decision, right-click your project and select: Properties. Now you see the project properties window. Select the drop-down menu with the name: C/C++. Should be submenus Optimizations. I just checked both 2010 and 2013, all this is in place. There you can choose which specific optimizations you want.

-3
source

Source: https://habr.com/ru/post/1525417/


All Articles