mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
fix release builds: generate empty version of checker function
This commit is contained in:
parent
ff03284c5c
commit
10d6969930
1 changed files with 6 additions and 5 deletions
|
@ -114,18 +114,19 @@ public class %s {
|
|||
fil.write( " \"%s\",\n" % pairs[key] )
|
||||
fil.write( " };\n" );
|
||||
|
||||
lines = """
|
||||
protected static void checkStrings( Context context )
|
||||
{
|
||||
func = " protected static void checkStrings( Context context ) {\n"
|
||||
if "debug" == target:
|
||||
func += """
|
||||
for ( int ii = 0; ii < strs.length; ++ii ) {
|
||||
if ( ! strs[ii].equals( context.getString( S_IDS[ii] ) ) ) {
|
||||
DbgUtils.logf( "unequal strings: \\"%s\\" vs \\"%s\\"",
|
||||
strs[ii], S_IDS[ii] );
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
fil.write( lines )
|
||||
func += " }"
|
||||
|
||||
fil.write( func )
|
||||
|
||||
# Now the end of the class
|
||||
lines = """
|
||||
|
|
Loading…
Reference in a new issue