Files
ispc/stdlib2cpp.py
Matt Pharr 6e8af5038b Fix issue #62: emit stdlib code as char array, not a string
MSVC 2010 issues an error if given a string larger than 64k characters
long.  To work around this, the pre-processed stdlib.ispc code is now
stored as an array of characters terminated with a NUL (i.e. the same thing
in the end); MSVC is fine with arrays larger than 64k characters.
2011-07-08 09:14:52 -07:00

13 lines
160 B
Python
Executable File

#!/usr/bin/python
import sys
print "char stdlib_code[] = { "
for line in sys.stdin:
for c in line:
print ord(c)
print ", "
print "0 };"