Rust gen-c-headers: keep 'const' attribute

pull/2814/head
Pierre Chifflier 8 years ago committed by Victor Julien
parent 4fe9292ed8
commit 4f677fd157

@ -99,12 +99,14 @@ def convert_type(rs_type):
if mod in [
"*mut",
"* mut",
"*const",
"* const",
"&mut",
"&'static mut",
]:
return "%s *" % (type_map[rtype])
elif mod in [
"*const",
"* const"]:
return "const %s *" % (type_map[rtype])
elif mod in [
"*mut *const",
"*mut*const"]:

Loading…
Cancel
Save