mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-10-02 23:17:25 +00:00
Properly mark the 'const' state of a fonction's return type.
This commit is contained in:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user