diff --git a/lib/cmock_generator.rb b/lib/cmock_generator.rb index dfbe3e2..2713e50 100644 --- a/lib/cmock_generator.rb +++ b/lib/cmock_generator.rb @@ -251,9 +251,6 @@ class CMockGenerator 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" diff --git a/test/unit/cmock_generator_main_test.rb b/test/unit/cmock_generator_main_test.rb index f8b5dae..57d147f 100644 --- a/test/unit/cmock_generator_main_test.rb +++ b/test/unit/cmock_generator_main_test.rb @@ -412,8 +412,7 @@ describe CMockGenerator, "Verify CMockGenerator Module" do it "create extern declarations for source file" do output = [] - expected = [ "extern jmp_buf AbortFrame;\n", - "\n" ] + expected = [ "\n" ] @cmock_generator.create_extern_declarations(output) @@ -422,8 +421,7 @@ describe CMockGenerator, "Verify CMockGenerator Module" do 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" ]