This commit is contained in:
Kelvin Sherlock 2019-08-10 21:49:17 -04:00
parent 548761d901
commit f006bf7f73
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python3
import getopt
import sys
import re
@ -204,7 +206,7 @@ def read_cpp(infile):
x = subprocess.run(args, stdout=subprocess.PIPE, encoding='ascii')
if x.returncode:
sys.exit(s.returncode)
sys.exit(x.returncode)
lines = x.stdout.split("\n")
return read_data(lines, "<cpp-stdin>")