News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Function list & #define

Started by blinde, September 09, 2010, 09:31:36 AM

Previous topic - Next topic

blinde

Hello

I have some code :

#ifndef TITI
void func()
{

}
#endif

...

#ifdef TITI
void func()
{

}
#endif

I use an external makefile where I define TITI.
So the function I use is the second one.

In the function list of my file, I see the function func()
But it points on the first one. (not the good one)

Is there a way to inform Codeblocks that TITI is defined and that should force it to point on the second function ?

Thanks

Chris


MortenMacFly

Quote from: blinde on September 09, 2010, 09:31:36 AM
Is there a way to inform Codeblocks that TITI is defined and that should force it to point on the second function ?
The C::B version of the code completion branch handles that just fine. This will be available through the nightlies probably soon.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Jenna

Quote from: MortenMacFly on September 09, 2010, 09:54:16 AM
Quote from: blinde on September 09, 2010, 09:31:36 AM
Is there a way to inform Codeblocks that TITI is defined and that should force it to point on the second function ?
The C::B version of the code completion branch handles that just fine. This will be available through the nightlies probably soon.
I don't think it can be handled if the define is in the makefile, as amkefiles are not parsed by cc.

MortenMacFly

Quote from: jens on September 09, 2010, 09:56:28 AM
I don't think it can be handled if the define is in the makefile, as amkefiles are not parsed by cc.
Oops - you are right, I missed that part. :oops:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]