CClash.Logging.Input C# (CSharp) Method

Input() public static method

public static Input ( string dir, string target, IEnumerable args ) : void
dir string
target string
args IEnumerable
return void
        public static void Input(string dir, string target, IEnumerable<string> args)
        {
            if (Settings.DebugEnabled)
            {
                var cfiles = from a in args where a.Contains(".c") select a;
                Logging.Emit("invoked: dir={0}, target={1} srcs={2}", dir, target, string.Join(",", cfiles.ToArray()));
            }
        }

Usage Example

Example #1
0
 public virtual bool IsSupported(ICompiler comp, IEnumerable <string> args)
 {
     if (FileUtils.Exists(compilerPath))
     {
         var rv = comp.ProcessArguments(args.ToArray());
         if (!rv)
         {
             Logging.Emit("unsupported args: {0}", string.Join(" ", args.ToArray()));
         }
         else
         {
             Logging.Input(comp.WorkingDirectory, comp.ObjectTarget, args);
         }
         return(rv);
     }
     throw new FileNotFoundException(compilerPath);
 }