Meta.VCCompilerHelper.ReplacePreprocessorDefine C# (CSharp) Method

ReplacePreprocessorDefine() public method

public ReplacePreprocessorDefine ( VCConfiguration cfg, string oldDef, string newDef ) : void
cfg VCConfiguration
oldDef string
newDef string
return void
        public void ReplacePreprocessorDefine( VCConfiguration cfg, string oldDef, string newDef )
        {
            VCCLCompilerTool cl = (VCCLCompilerTool)cfg.Tools.Item("VCCLCompilerTool");
            if (cl != null)
            {
                cl.PreprocessorDefinitions = cl.PreprocessorDefinitions.Replace(oldDef, newDef);
            }
        }