User forums > Using Code::Blocks

How to expand compiler variable containing spaces without quotes

<< < (4/5) > >>

MortenMacFly:

--- Quote from: oBFusCATed on September 28, 2011, 02:08:41 pm ---Now someone should implement it  :lol:  8)

--- End quote ---
Done in trunk.

BTW: I figured out a bad "bug":
What does not work for all these macros is something like:
$TO_ABSOLUTE_PATH{%APPDATA%} (on Windows, for example), as the platform specific macros (environment variables) are being replaced at last (which HAS to be like that!). Unfortunately this spoils things I had in mind with the TO_PATH_83 macro. I don't have a good solution other than for these (path's related) macros check for inner platform macros first that point to path's, but this seems very hacky to me. :-(

Does any of you have a good idea for these cases?

Oleg_Sam:
The $REMOVE_QUOTES{} macros is not work on CB svn7549 Debugger Branch on WinXp SP3.
To reproduce it :
1. Create any project, for example, Console Application
2. Build this Project, all works OK.
3. Create Custom variable ADD_OPTIONS = -Wextra -Wmain (the quotes is automaticaly added)
4. In Compiler settings -> Other options type  $REMOVE_QUOTES{$(ADD_OPTIONS)}
5. Build this Project.. after this CB is hangs up and crashes  :(

Thanks.

oBFusCATed:
Does it work with the normal nightly?

Oleg_Sam:
I dont know, because I use only debugger branch.. :(

Oleg_Sam:
I just test it on normal nightly svn7550, and this macro also not work and CB crashes :(

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version