mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-10-10 10:57:27 +00:00
Changed has_setjmp_h option to exclude_setjmp_h
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user