Strip whitespace from #includes in convert_swig

Fixes #722
This commit is contained in:
Derek Bankieris 2019-01-30 09:18:16 -06:00
parent d7cb67363b
commit 0b6f528734

View File

@ -374,7 +374,8 @@ sub process_file($$) {
if ( /^(\s*\#\s*include\s+)([^\n]+)/ ) {
my ( $include ) = $1 ;
my ( $file_name ) = $2 ;
( my $file_name = $2 ) =~ s/^\s+|\s+$//g ; # Strip leading & trailing whitespace
if ( $file_name !~ /\</ ) {
if ( $file_name !~ /\"sim_services/ and $file_name !~ /\"trick_utils/ ) {
my $exclude = 0 ;