diff options
Diffstat (limited to '')
-rw-r--r-- | gensigs.bld | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gensigs.bld b/gensigs.bld index 0658b88..d973f91 100644 --- a/gensigs.bld +++ b/gensigs.bld | |||
@@ -1,6 +1,10 @@ | |||
1 | function genSigs( maxParams ) | 1 | function genSigs( outName ) |
2 | { | 2 | { |
3 | fOut = open("testsignal.h", "w"); | 3 | if exists( outName ) then |
4 | { | ||
5 | unlink( outName ); | ||
6 | } | ||
7 | fOut = open(outName, "w"); | ||
4 | fOut.write( | 8 | fOut.write( |
5 | "/*\n" | 9 | "/*\n" |
6 | " * Copyright (C) 2007-2011 Xagasoft, All rights reserved.\n" | 10 | " * Copyright (C) 2007-2011 Xagasoft, All rights reserved.\n" |
@@ -21,7 +25,7 @@ function genSigs( maxParams ) | |||
21 | "\n" | 25 | "\n" |
22 | ); | 26 | ); |
23 | 27 | ||
24 | for i in range( 0, 5 ) do | 28 | for i in range( 0, 10 ) do |
25 | { | 29 | { |
26 | templParams = "typename ret"; | 30 | templParams = "typename ret"; |
27 | funcParams = ""; | 31 | funcParams = ""; |