Skip to content

Commit

Permalink
Merge pull request #1 from hiiru/bugfixingsim-bugfix
Browse files Browse the repository at this point in the history
abusing powers to accept my own request :)
  • Loading branch information
hiiru committed Apr 10, 2015
2 parents 1a07865 + 51805be commit 0337d73
Showing 1 changed file with 20 additions and 5 deletions.
25 changes: 20 additions & 5 deletions BugFixingSim/src/BugFixingSim/Program.cs
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;

namespace BugFixingSim
Expand All @@ -10,7 +10,7 @@ public void Main(string[] args)
Console.WriteLine("Bugfixing sim 0.0.1-alpha, fix bugs yourself!");
Console.WriteLine();
int task = 1;
int bugfixes=0;
int bugfixes = 0;
var memleak = new List<byte[]>();
while (true)
{
Expand Down Expand Up @@ -42,8 +42,20 @@ public void Main(string[] args)

private void StackOverflow()
{
//because i'm too lazy to throw the StackOverflowException myself
StackOverflow();
try
{
//because i'm too lazy to throw the StackOverflowException myself
StackOverflow();
}
#if ASPNET50
catch (StackOverflowException soe)
#else
catch (Exception e)
#endif
{
// what better way is there to handle this great exception than to catch it? :P
// at least I also added the coreCLR fallback.
}
}

private bool CheckBugfix(string line)
Expand All @@ -58,10 +70,13 @@ private bool CheckBugfix(string line)
case "fixed":
case "done":
case "workaround":
case "intented":
case "intended":
case "fix":
case "solved":
return true;
//legacy support for old version and ppl like me who can't type correctly!!!11111
case "intented":
return true;
}
}
return false;
Expand Down

0 comments on commit 0337d73

Please sign in to comment.