excluding some lines from compiling
Dear all,
I have created some C++ classes for a plugin of a simulator. Some lines of these classes are useful for making up a log file, in order to testing the good working of the plugin. When I use this plugin, I would disable the making up of the log file. I thought to use the following macro: Code:
#ifdef DEBUG Code:
#ifdef DEBUG Code:
#endif In order to compiling the plugin, I use a Makefile.gen, and I generate the Makefile by the command Code:
make -f Makefile.gen Within the Makefile I found the following line: Code:
CFLAGS=-O2 -DNDEBUG=1 -DWITH_PARSIM -DWITH_NETBUILDER Code:
CFLAGS=-O2 -DDEBUG -DWITH_PARSIM -DWITH_NETBUILDER |
From the gcc man page:
Code:
-D name=definition |
Sorry...:confused:
I don't understand... |
All times are GMT -5. The time now is 04:38 AM. |