copied change from pr 468

This commit is contained in:
Mark VanderVoord
2024-03-09 19:08:11 -05:00
parent 3232b72205
commit dddd01dfa7
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
Copyright (c) 2007-23 Mike Karlesky, Mark VanderVoord, Greg Williams
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, Greg Williams
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
+2 -1
View File
@@ -140,7 +140,8 @@ class CMockGenerator
if existing.empty?
create_source_header_section(file, fullname, blank_project)
else
file << existing << "\n"
file << existing
file << "\n" if existing[-1] != "\n"
end
mock_project[:parsed_stuff][:functions].each do |function|
create_function_skeleton(file, function, existing)