Allow None for string parameters in the Python wrapper (value passed as NULL to the C code).

This commit is contained in:
Ghislain MARY 2014-07-10 15:04:21 +02:00
parent e74afa7979
commit ce1911fe5a

View file

@ -139,7 +139,7 @@ class MethodDefinition:
basic_type, splitted_type = self.__get_basic_type_from_c_type(ctype)
if basic_type == 'char':
if '*' in splitted_type:
return 's'
return 'z'
elif 'unsigned' in splitted_type:
return 'b'
elif basic_type == 'int':