Support for stack overflow and infinite recursion detection in new

parser
This commit is contained in:
ridiculousfish
2014-01-01 15:29:56 -08:00
parent 27cba56761
commit fb882f0b69
10 changed files with 204 additions and 46 deletions

View File

@@ -136,7 +136,8 @@ static bool proc_had_barrier = false;
int get_is_interactive(void)
{
ASSERT_IS_MAIN_THREAD();
return is_interactive;
// The tests leave is_interactive as -1, which is interpreted as true. So let's have them default to false.
return is_interactive > 0;
}
bool get_proc_had_barrier()