mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-15 14:49:58 +00:00
Force ourselves to test with Ruby 3.
Fix some issues that have been lurking.
This commit is contained in:
@@ -137,7 +137,11 @@ class CMockGenerator
|
||||
@file_writer.create_file(mock_project[:module_name] + '.c', @subdir) do |file, fullname|
|
||||
blank_project = mock_project.clone
|
||||
blank_project[:parsed_stuff] = { :functions => [] }
|
||||
create_source_header_section(file, fullname, blank_project) if existing.empty?
|
||||
if (existing.empty?)
|
||||
create_source_header_section(file, fullname, blank_project)
|
||||
else
|
||||
file << existing << "\n"
|
||||
end
|
||||
mock_project[:parsed_stuff][:functions].each do |function|
|
||||
create_function_skeleton(file, function, existing)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user