Esempio n. 1
0
 //Even trigger wrappers
 public static void NextLine(object sender, LineEventArgs args) { OnNextLine(sender, args); }
Esempio n. 2
0
 public static void Preprocessor_OnNextLine(object sender, LineEventArgs e)
 {
     if (!e.Handled)
     {
         if (e.Line.Trim().StartsWith("#"))
         {
             foreach (Directive dir in Preprocessor.DirectiveList)
             {
                 if (dir.Name == e.Line.Split(Convert.ToChar(" ")).First().Replace("#", ""))
                 {
                     dir.callback(e.Line);
                 }
             }
         }
         else
         {
             Preprocessor.PreprocessedFile.AppendLine(e.Line);
         }
     }
 }