From b042e073db750f616d11cde4a9553199052e6a3c Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Thu, 28 Nov 2013 05:25:54 +0000 Subject: [PATCH] Remove #include from expand_macros.pl input --- PBot/VERSION.pm | 2 +- modules/expand_macros.pl | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/PBot/VERSION.pm b/PBot/VERSION.pm index 96e444dd..2bee0fd4 100644 --- a/PBot/VERSION.pm +++ b/PBot/VERSION.pm @@ -13,7 +13,7 @@ use warnings; # These are set automatically by the build/commit script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 473, + BUILD_REVISION => 474, BUILD_DATE => "2013-11-27", }; diff --git a/modules/expand_macros.pl b/modules/expand_macros.pl index ff64c26a..e256cda0 100755 --- a/modules/expand_macros.pl +++ b/modules/expand_macros.pl @@ -156,6 +156,10 @@ while($code =~ m/(.)/msg) { print "code after \\n additions: [$code]\n" if $debug; +$code =~ s/#include [<"'].*?['">]//gm; + +print "code after include removal: [$code]\n" if $debug; + my $precode = $code; $code = '';