mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-22 01:57:28 +00:00
Merge pull request #28 from jlesage/master_for_pull_request2
Properly mark the 'const' state of a function's return type. (Thanks Jocelyn!)
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