mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-20 10:09:54 +00:00
Fix recent const changes to account for special (char*) handling.
This commit is contained in:
@@ -154,7 +154,7 @@ class CMockHeaderParser
|
||||
#
|
||||
arg_array = arg.split
|
||||
ptr_const_info = divine_ptr_and_const(arg)
|
||||
arg_elements = arg_array - (ptr_const_info[:ptr?] ? @c_attr_noconst : @c_attributes)
|
||||
arg_elements = arg_array - (arg.include?('*') ? @c_attr_noconst : @c_attributes)
|
||||
args << { :type => arg_elements[0..(ptr_const_info[:const_ptr?] ? -3 : -2)].join(' '),
|
||||
:name => arg_elements[-1]
|
||||
}.merge(ptr_const_info)
|
||||
|
||||
Reference in New Issue
Block a user