Commit b82742a5 authored by François Grisez's avatar François Grisez
Browse files

Cpp wrapper: fix bug concerning 'void *'

parent aa80b003
......@@ -273,7 +273,7 @@ class CppTranslator(object):
if type(exprtype) is AbsApi.BaseType:
if == 'string':
cExpr = 'cppStringToC({0})'.format(cppExpr);
elif exprtype not in ['void', 'string', 'string_array'] and exprtype.isref:
elif not in ['void', 'string', 'string_array'] and exprtype.isref:
cExpr = '&' + cppExpr
cExpr = cppExpr
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment