Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Check 'Variable expansion'

(1/3) > >>

LETARTARE:
Hello,
How to simply check the contents of an expansion variable before using it ?

oBFusCATed:
I don't know of an easy way, but you can use the ReplaceMacros squirrel function, probably.

LETARTARE:
Thanks,
Of course, but it would be convenient to have a tool to do this work at each location where an expansion variable can be used:
- Project Build Option...
- Tools-> Configure tools->Edit
- ...
A plugin expansion ?

ollydbg:

--- Quote from: LETARTARE on November 28, 2020, 02:53:55 pm ---Thanks,
Of course, but it would be convenient to have a tool to do this work at each location where an expansion variable can be used:
- Project Build Option...
- Tools-> Configure tools->Edit
- ...
A plugin expansion ?

--- End quote ---

I think the Menu->Tools is a good place to test the variable expansion.

You can wrote some command like

--- Code: ---echo $TDAY

--- End code ---

Then run the command, this command will shown in the console window as "echo 20201128".

oBFusCATed:

--- Quote from: LETARTARE on November 28, 2020, 02:53:55 pm ---Of course, but it would be convenient to have a tool to do this work at each location where an expansion variable can be used:
...
--- End quote ---
I don't understand.
What do you mean by test?
Put the variable, run the command and test it.

Navigation

[0] Message Index

[#] Next page

Go to full version