Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: ollydbg on April 07, 2013, 05:03:08 am

Title: Comment correct in common_functions.script?
Post by: ollydbg on April 07, 2013, 05:03:08 am
In trunk\src\plugins\scriptedwizard\resources\common_functions.script

Code
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.