[Bindings php5] simplify is_object in php_code.py
This commit is contained in:
parent
2468e0a421
commit
553814f90c
|
@ -30,8 +30,7 @@ class PhpCode:
|
|||
self.fd = fd
|
||||
|
||||
def is_object(self, t):
|
||||
return t not in ['char*', 'const char*', 'gchar*', 'const gchar*', 'GList*', 'GHashTable*',
|
||||
'xmlNode*', 'int', 'gint', 'gboolean', 'const gboolean'] + self.binding_data.enums
|
||||
return is_object(t) and not is_int(t, self.binding_data)
|
||||
|
||||
def generate(self):
|
||||
self.generate_header()
|
||||
|
|
Loading…
Reference in New Issue