why do we use -D in another ff. in the target right-click, go to get information in the assembly settings for other c-flags, why should we write -D like -DDEBUG
-Dis the gcc flag for setting a #define. You can also do things like -DTWO=2that which has the same effect as #define TWO 2.
-D
#define
-DTWO=2
#define TWO 2
I know this is an old question, and you already understood this, but here is the reason for the flag.
, -D #define . , -DDEBUG, , , /, . #ifdef DEBUG, , DEBUG, , .
-DDEBUG
#ifdef DEBUG
DEBUG
Xcode / .
#ifndef DEBUG , , , , .
#ifndef DEBUG
Source: https://habr.com/ru/post/1781647/More articles:What language / structure do you recommend me for implementing the CMS solution? - frameworksОбнаружение, если компьютер не работает на основе взаимодействия с мышью и клавиатурой - c++Global variable on asp.net - global-variablesHow can I use namespaces in C ++ files? - c ++Scalability php applications - performanceNeed help splitting MVC - phpConvert uint8 * to std :: string - c ++Splitting a string into a list according to a given format - pythonSystem.Threading.Timers VS Windows Service VS Schedule Appointment - .netкак перейти к середине единственного связанного списка на одной итерации? - javaAll Articles