mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-16 07:09:57 +00:00
- added cmock.c file for handling generic parts
- switched to better memory management technique git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@155 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
@@ -22,10 +22,8 @@ class CMockUnityHelperParser
|
||||
|
||||
def map_C_types
|
||||
c_types = {}
|
||||
[@config.standard_treat_as_map, @config.treat_as].each do |pairs|
|
||||
pairs.each_pair do |ctype, expecttype|
|
||||
c_types[ctype.gsub(/\s+/,'_')] = "TEST_ASSERT_EQUAL_#{expecttype}_MESSAGE"
|
||||
end unless pairs.nil?
|
||||
@config.treat_as.each_pair do |ctype, expecttype|
|
||||
c_types[ctype.gsub(/\s+/,'_')] = "TEST_ASSERT_EQUAL_#{expecttype}_MESSAGE"
|
||||
end
|
||||
c_types
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user