Skip to content

Commit

Permalink
Renamed _executingLine to executingLine
Browse files Browse the repository at this point in the history
  • Loading branch information
zenonet committed May 15, 2022
1 parent 4cd5a64 commit 2ba850b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SusLangCompiler/Compiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ internal static bool ExecuteInternal(string code)
{
while (code.Length > 0)
{
_executingLine++;
executingLine++;

Expression expression = Expression.Parse(ref code);
if(expression != null)
Expand All @@ -57,7 +57,7 @@ internal static bool ExecuteInternal(string code)

#region Quick and dirty logging

private static int _executingLine;
private static int executingLine;
public static class Logging
{
public static TextWriter Stream;
Expand All @@ -74,7 +74,7 @@ internal static string WaitForInput()

internal static void LogError(string error)
{
LogRaw($"\nSabotage in line {_executingLine}: {error}\n");
LogRaw($"\nSabotage in line {executingLine}: {error}\n");
}

internal static void LogProgramOutput(string msg)
Expand Down

0 comments on commit 2ba850b

Please sign in to comment.