NO

Author Topic: Some questions  (Read 2507 times)

Kempelen

  • Guest
Some questions
« on: March 09, 2008, 03:56:30 AM »
I have two questions:

1) In preprocesor there are __TIME__ and __DATE__ . Is there any other to obtain function name?
2) I have put a copy command in the prj file to move the output filename to other directory. My exe makes some output txt files. So when I click "run"/"Execute" buttom, the program that run is not the one I have copied, but the one in the default output directory. Lot of 'dirty' is mixed with sources. How can I run the file I put in the other directory? Is there any way to change the functionality button to run the one I want?
thx.

severach

  • Guest
Re: Some questions
« Reply #1 on: March 10, 2008, 12:21:40 AM »
It's __func__. You can find it in assert.h and in the help file under "What is ISO C99?." __func__ needs to be added to "Predefined preprocessor symbols (POCC)".

The "Predefined preprocessor symbols (POCC)" are much too hard to find in the Pelles help. I know they are there yet it takes me a few minutes slogging through the help to figure out what page points to them. There should be an index entry called "Predefined preprocessor symbols (POCC)" and "Predefined preprocessor symbols (POCC)" should be referenced directly from #ifdef, #define, #undef, "C preprocessor defined operator", "C preprocessor stringizing operator (#)", and "/D option (POCC)"

Other index topics are necessary

"define" -> #define
"defined" -> "C preprocessor defined operator"
"predefined" -> "Predefined preprocessor symbols (POCC)"
"macros" -> "C preprocessor macros"
"preprocessor" -> "C preprocessor"
"Command line options" -> "Command line options (POCC)", "Command line options (PODUMP)", ...

I should be able to type any preprocessor keyword that comes to mind and be no more than 2 clicks from "Predefined preprocessor symbols (POCC)".