3

I'd like to compile differently based on which build configuration I'm using. Something like

#ifdef DEBUG
 // debug code goes here
#endif

I know I can do this by defining preprocessor macros for each build configuration. But I'm wondering if there's already something built-in I can ues. Is there?

4

1 回答 1

0

这是我一直用的,而且很干净。当您搜索代码时它也会出现,这很好,因为设置等......可能不会。

于 2013-08-06T19:30:17.033 回答