User forums > Using Code::Blocks

How to expand compiler variable containing spaces without quotes

<< < (3/5) > >>

MortenMacFly:

--- Quote from: thomas on September 27, 2011, 07:39:57 pm ---The only thing I could think of which would be realistic to implement and safe enough for backwards compatibility would be to decide for a "literal string" marker, and that can be harder than it sounds.

--- End quote ---
I see another (IMHO much simpler) solution: What about a global macros like $NO_LITERALS{my_string} or $REMOVE_QUOTES{my_string}, similar to the other macros like $COIN, $PATH_83{} or alike we have?

killerbot:
I think Martin has a point, I was thinking along the same line. Just like the $TO_ABSOLUTE_PATH macro, or whatever I called it ;-)

thomas:
$REMOVE_QUOTES{} might indeed be the solution. Quite a good idea.

Jenna:

--- Quote from: MortenMacFly on September 27, 2011, 08:13:20 pm ---
--- Quote from: thomas on September 27, 2011, 07:39:57 pm ---The only thing I could think of which would be realistic to implement and safe enough for backwards compatibility would be to decide for a "literal string" marker, and that can be harder than it sounds.

--- End quote ---
I see another (IMHO much simpler) solution: What about a global macros like $NO_LITERALS{my_string} or $REMOVE_QUOTES{my_string}, similar to the other macros like $COIN, $PATH_83{} or alike we have?

--- End quote ---
Sounds good to me.

oBFusCATed:
Now someone should implement it  :lol:  8)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version