fix release builds: generate empty version of checker function

This commit is contained in:
Eric House 2014-04-10 07:43:57 -07:00
parent ff03284c5c
commit 10d6969930

View file

@ -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 = """