Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: blinde on September 09, 2010, 09:31:36 am

Title: Function list & #define
Post by: blinde on September 09, 2010, 09:31:36 am
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

Title: Re: Function list & #define
Post by: MortenMacFly on September 09, 2010, 09:54:16 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.
Title: Re: Function list & #define
Post by: Jenna on September 09, 2010, 09:56:28 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.
Title: Re: Function list & #define
Post by: MortenMacFly on September 09, 2010, 10:11:50 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: