Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Pecan on November 26, 2015, 04:15:06 pm

Title: Double $$'s on Tools configuration
Post by: Pecan on November 26, 2015, 04:15:06 pm
Tools->Configure tools->add shows Double $$'s prepended to macros.

Is it really supposed to be double $$'s ?

svn build  rev 10570 (2015-11-14 16:53:59)   gcc 4.9.2 Windows/unicode - 32 bit
Title: Re: Double $$'s on Tools configuration
Post by: oBFusCATed on November 27, 2015, 06:27:47 am
I can confirm the issue. I don't know what is correct, probably single dollar sign.
Title: Re: Double $$'s on Tools configuration
Post by: Pecan on November 27, 2015, 05:50:55 pm
I've played around with it for awhile, and I cannot make $$(macro) work. It always prints the same value as the macro name, ie., $$(projectdir) just prints out '$(projectdir)'.

If there's no objection, I'll change $$(<macro>) back to $(<macro>).

Title: Re: Double $$'s on Tools configuration
Post by: MortenMacFly on November 28, 2015, 05:53:21 am
If there's no objection, I'll change $$(<macro>) back to $(<macro>).
Do you mean in the description of the UI? It has been with $$ for many years, I don't know why but I also always use the $ macros, of course.

It might have been becasue it needed to be masked as it is in an XRC file... at least nowadays there is no need for it.

No objections if you want to change it.
Title: Re: Double $$'s on Tools configuration
Post by: Pecan on November 28, 2015, 03:12:51 pm
Applied: SVN 10604
Title: Re: Double $$'s on Tools configuration
Post by: White-Tiger on November 30, 2015, 01:39:24 pm
I've actually a local version of a similar case in advanced compiler options...
But it also fixes the underscores as they're missing currently

You might want to take a look ;)
Title: Re: Double $$'s on Tools configuration
Post by: MortenMacFly on December 07, 2015, 08:02:10 pm
You might want to take a look ;)
You were right. Applied in trunk. Thank you!