mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-06-05 21:15:20 +00:00
copied change from pr 468
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user