Author Topic: Advice to the C::B variables add an uppercase macro  (Read 3653 times)

Offline Chun Jiu

  • Multiple posting newcomer
  • *
  • Posts: 71
  • My Girlfriend
    • EasilyGCC
Advice to the C::B variables add an uppercase macro
« 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)__".

I love my girlfriend like c++!    :-)

http://pan.baidu.com/s/1feNwU
easilygcc is a gmail's email.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Advice to the C::B variables add an uppercase macro
« Reply #1 on: March 21, 2015, 11:36:22 am »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Chun Jiu

  • Multiple posting newcomer
  • *
  • Posts: 71
  • My Girlfriend
    • EasilyGCC
Re: Advice to the C::B variables add an uppercase macro
« Reply #2 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 :-)
I love my girlfriend like c++!    :-)

http://pan.baidu.com/s/1feNwU
easilygcc is a gmail's email.