mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-22 20:09:43 +01:00
Remove #include from expand_macros.pl input
This commit is contained in:
parent
d5d4d503b2
commit
b042e073db
@ -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",
|
||||
};
|
||||
|
||||
|
@ -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 = '';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user