Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Chun Jiu on March 21, 2015, 09:55:20 am

Title: Advice to the C::B variables add an uppercase macro
Post by: Chun Jiu on March 21, 2015, 09:55:20 am
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)__".

Title: Re: Advice to the C::B variables add an uppercase macro
Post by: 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
Title: Re: Advice to the C::B variables add an uppercase macro
Post by: Chun Jiu on March 21, 2015, 01:42:42 pm
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

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