Files
ispc/stdlib2cpp.py
2011-06-21 12:48:50 -07:00

12 lines
177 B
Python
Executable File

#!/usr/bin/python
import sys
print "const char *stdlib_code = "
for line in sys.stdin:
l=line.rstrip()
l=l.replace('"', '\\"')
print "\"" + l + "\\n\""
print ";"