root/trunk/infrastructure/pyd/generators/func_gen.py
| Revision 24, 206 bytes (checked in by KirkMcDonald, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | f = open('func_gen.txt', 'w') |
| 2 | |
| 3 | template = """\ |
| 4 | static if (ARGS > %s) { |
| 5 | ArgType!(typeof(fn), %s) arg%s; |
| 6 | } |
| 7 | """ |
| 8 | |
| 9 | for i in range(10): |
| 10 | f.write(template % (i, i+1, i+1)) |
Note: See TracBrowser for help on using the browser.
