Added pointer to gen

This commit is contained in:
Colin Sherratt
2015-06-13 16:38:07 -04:00
parent 2b6d5d1304
commit 7487541cae
4 changed files with 142 additions and 136 deletions

View File

@ -105,7 +105,7 @@ for s in data['structs']:
print "extern \"C\" {"
for m in data['methods']:
print '\tpub fn ' + parse_class(m['classname']) + '_' + m['methodname'] + "(",
print '\tpub fn ' + parse_class(m['classname']) + '_' + m['methodname'] + "(usize,",
s = []
for p in m.get('params', []):
if p['paramname'] == 'type':