I would like to disable the compiler for a section of my code. I do not want to use comments to “hide” the code from the compiler, because this section contains a lot of comments /*...*/. I would suggest that there is a general way to use compiler directives or #defines or something to control compilation. In fact, my desire to suppress compilation does not depend on state such as SDK or platform, I just wanted to disable it. How to do it?
/*...*/
A quick fix is to wrap this section of code with
#if 0 … #endif
where 0 means false. To turn it back on,
#if 1 … #endif
- ( → → ) , , , . ,
#ifndef IGNORE_THIS_SECTION … #endif
" " #ifdef.
#ifdef
, . .
3 :
http://just2us.com/2009/07/tutorial-creating-multiple-targets-for-xcode-iphone-projects/
, #if.
Source: https://habr.com/ru/post/1787012/More articles:Extract YAML from text field - ruby | fooobar.comHow to match and delete any line containing a specific line? - regexПроблемы с производительностью с использованием OCR Tesseract из приложения Python - pythonto find out which part of QGraphicsItem is visible in QGraphicsView - c ++The jQuery click event fires the first time, but not the second - jqueryPHP: replacing a DateTime object - phpwhat size of a piece will give maximum performance using a master worker with MPI? - cOpenGL depth test not working properly - openglСуществует ли эквивалент Objective C метода JavaScript для кодирования()? - javascriptRails 2.3.x - как работает эта область ActiveRecord? - ruby-on-railsAll Articles