diff --git a/ut_assert/scripts/generate_stubs.pl b/ut_assert/scripts/generate_stubs.pl index 720ee37f1..9dff1e610 100755 --- a/ut_assert/scripts/generate_stubs.pl +++ b/ut_assert/scripts/generate_stubs.pl @@ -129,6 +129,12 @@ } close(HDR); + foreach (@lines) + { + # Truncate each line at C++-style comment + s/\/\/.*$//; + } + # combine all content into a single string # this eases processing of multi-line constructs $file = join('', @lines);