C++ wrapper: mask support

This commit is contained in:
François Grisez 2017-05-30 17:04:55 +02:00
parent 6ef2f2a96f
commit 2f64a54b23

View file

@ -799,6 +799,8 @@ class CParser(object):
absType.isref = cType.completeType.endswith('*')
elif cType.ctype == self.cListType:
absType = ListType(cType.containedType)
elif cType.ctype.endswith('Mask'):
absType = BaseType('integer', isUnsigned=True)
else:
raise Error('Unknown C type \'{0}\''.format(cType.ctype))