In trunk\src\plugins\scriptedwizard\resources\common_functions.script
function VerifyMacro(macro)
{
// try to make it a real path and verify it's existence
local dir = ReplaceMacros(macro, true);
// verify if there are macros used at all...
if (macro.Matches(dir))
{
return (_T("")); // no macros used -> return empty
}
return dir;
}
I think "try to make it a real path and verify it's existence" is not correct, this function just try to expand macro, than compare whether the original string and the expanded string are the same. This means it try to see whether a string have macro usages in it.