Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Advice to the C::B variables add an uppercase macro

(1/1)

Chun Jiu:
Hello,

This is very convenient when adding an uppercase macro to variables. For example,
In the "#defines" table, because symbols are usually capitalized.
However, since the definition of a variable is usually a string lowercase.

So, add an uppercase macro to the variables to perfect.

For example, to do so:
Set "target_arch=my_x86" obtain "__EASILYGCC_MY_X86__" by "__EASILYGCC_$^(target_arch)__".

Otherwise very disappointing:
Obtain the  "__EASILYGCC_my_x86__" by "__EASILYGCC_$(target_arch)__".

oBFusCATed:
As far as I can see the only way to do it is to use a squirrel script.

See here http://wiki.codeblocks.org/index.php?title=Variable_expansion#Language_and_encoding and http://wiki.codeblocks.org/index.php?title=Scripting_commands

Chun Jiu:

--- Quote from: oBFusCATed on March 21, 2015, 11:36:22 am ---As far as I can see the only way to do it is to use a squirrel script.

See here http://wiki.codeblocks.org/index.php?title=Variable_expansion#Language_and_encoding and http://wiki.codeblocks.org/index.php?title=Scripting_commands

--- End quote ---

Oh~, i think too much trouble to use those scripts.
Okay, i still use a script ...
Thank you :-)

Navigation

[0] Message Index

Go to full version