Some more debug info

This commit is contained in:
laurens
2019-11-16 08:30:20 +01:00
committed by laurensmiers
parent c7f24da4f7
commit 972814622f
+10 -5
View File
@@ -133,15 +133,17 @@ class CMockHeaderParser
inline_function_regex_formats.each do |format|
loop do
inline_function_match = source.match(/#{format}/) # Search for inline function declaration
break if nil == inline_function_match # No inline functions so nothing to do
puts "--------------------"
puts "FORMAT USED"
puts format
puts
inline_function_match = source.match(/#{format}/) # Search for inline function declaration
if nil == inline_function_match # No inline functions so nothing to do
puts "NO INLNE MATCH FOUND, GOING TO NEXT"
break
end
puts "PRE MATCH"
puts inline_function_match.pre_match
puts
@@ -156,7 +158,10 @@ class CMockHeaderParser
total_pairs_to_remove = count_number_of_pairs_of_braces_in_function(inline_function_match.post_match)
break if 0 == total_pairs_to_remove # Bad source?
if 0 == total_pairs_to_remove # Bad source?
puts "NO PAIRS/FUNCTION BODY FOUND TO REMOVE, GOING TO NEXT"
break
end
inline_function_stripped = inline_function_match.post_match