Hi All,
I want to set and read the global variable in the startup script.
Is there any way you can do?
Probably you can do it by directly altering the config file using the ConfigManager.
See here for details: http://wiki.codeblocks.org/index.php?title=Scripting_commands
Quote from: oBFusCATed on March 24, 2015, 06:34:37 PM
Probably you can do it by directly altering the config file using the ConfigManager.
See here for details: http://wiki.codeblocks.org/index.php?title=Scripting_commands
ConfigManager only access new global variables for scripts in runtime. Do not know how to access global variables existing in CB.
There is the global "ReplaceMacros" function exposed for that purpose.
If you call it with a macro it will provide you with the "translation".
Quote from: MortenMacFly on March 25, 2015, 07:06:40 AM
There is the global "ReplaceMacros" function exposed for that purpose.
If you call it with a macro it will provide you with the "translation".
Thank all :)
I'm looking for ways to add a global variables to cb. Because I want to use a script to replace the target compiler tool chain.
But found replacement target compiler ID can achieve the same purpose.
So, thanks guys ;)