Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started 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)__".
-
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
-
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 :-)