Properly mark the 'const' state of a fonction's return type.

This commit is contained in:
Jocelyn Le Sage
2014-05-06 09:24:38 -04:00
parent 053c3b67f1
commit 027648a9b2
+1 -1
View File
@@ -223,7 +223,7 @@ class CMockHeaderParser
decl[:return] = { :type => rettype,
:name => 'cmock_to_return',
:ptr? => divine_ptr(rettype),
:const? => rettype.split(/\s/).include?('const'),
:const? => decl[:modifier].split(/\s/).include?('const'),
:str => "#{rettype} cmock_to_return",
:void? => (rettype == 'void')
}