//Even trigger wrappers public static void NextLine(object sender, LineEventArgs args) { OnNextLine(sender, args); }
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); } } }