Changed has_setjmp_h option to exclude_setjmp_h

This commit is contained in:
Jean Rubillon
2021-01-27 18:56:02 +00:00
parent 21d181380f
commit 4ae268dbbe
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ class CMockConfig
:array_size_type => [],
:array_size_name => 'size|len',
:skeleton => false,
:has_setjmp_h => true,
:exclude_setjmp_h => false,
# Format to look for inline functions.
# This is a combination of "static" and "inline" keywords ("static inline", "inline static", "inline", "static")
+2 -2
View File
@@ -170,7 +170,7 @@ class CMockGenerator
file << "/* AUTOGENERATED FILE. DO NOT EDIT. */\n" unless functions.empty?
file << "#include <string.h>\n"
file << "#include <stdlib.h>\n"
if @has_setjmp_h
unless @exclude_setjmp_h
file << "#include <setjmp.h>\n"
end
file << "#include \"cmock.h\"\n"
@@ -208,7 +208,7 @@ class CMockGenerator
end
def create_extern_declarations(file)
if @has_setjmp_h
unless @exclude_setjmp_h
file << "extern jmp_buf AbortFrame;\n"
end
if @ordered