Bug 863777 - Add types to jni-generator.py; r=kats

This commit is contained in:
Jim Chen 2013-06-14 12:42:10 -04:00
parent fc01afb5cb
commit 52d58c423c

View File

@ -67,7 +67,7 @@ class Generator:
paramNames = ['arg%d' % i for i in range(0, len(paramTypes))]
if returnType == 'void':
returnValue = ''
elif returnType == 'jobject':
elif returnType in ('jobject', 'jstring'):
returnValue = 'NULL'
elif returnType in ('jint', 'jfloat', 'jdouble', 'jlong'):
returnValue = '0'