Skip to content

Commit

Permalink
🪲 remove unused AbortFrame (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandervoord committed Mar 27, 2024
1 parent 714619e commit ecaccb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions lib/cmock_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,6 @@ def create_instance_structure(file, mock_project)
end

def create_extern_declarations(file)
unless @exclude_setjmp_h
file << "extern jmp_buf AbortFrame;\n"
end
if @ordered
file << "extern int GlobalExpectCount;\n"
file << "extern int GlobalVerifyOrder;\n"
Expand Down
6 changes: 2 additions & 4 deletions test/unit/cmock_generator_main_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,7 @@ def helper_create_header_top_with_opt_includes_form_config_and_plugin(ext)

it "create extern declarations for source file" do
output = []
expected = [ "extern jmp_buf AbortFrame;\n",
"\n" ]
expected = [ "\n" ]

@cmock_generator.create_extern_declarations(output)

Expand All @@ -422,8 +421,7 @@ def helper_create_header_top_with_opt_includes_form_config_and_plugin(ext)

it "create extern declarations for source file when using strict ordering" do
output = []
expected = [ "extern jmp_buf AbortFrame;\n",
"extern int GlobalExpectCount;\n",
expected = [ "extern int GlobalExpectCount;\n",
"extern int GlobalVerifyOrder;\n",
"\n" ]

Expand Down

0 comments on commit ecaccb4

Please sign in to comment.