Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Chun Jiu on March 24, 2015, 05:52:39 pm
-
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
-
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".
-
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 ;)