We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 193cffa commit 393c172Copy full SHA for 393c172
perlpp.pl
@@ -222,6 +222,11 @@ sub ExecuteCommand {
222
die "Invalid name \"$nm\" in \"ifdef\"" if $nm !~ DEFINE_NAME_RE;
223
print "if(defined(\$D\{$nm\})) {\n"; # Don't need exists()
224
225
+ } elsif ( $cmd =~ /^ifndef\s++(?<nm>\S++)\s*+$/i ) { # test in %D
226
+ my $nm = $+{nm}; # Otherwise !~ clobbers it.
227
+ die "Invalid name \"$nm\" in \"ifdef\"" if $nm !~ DEFINE_NAME_RE;
228
+ print "if(!defined(\$D\{$nm\})) {\n"; # Don't need exists()
229
+
230
} elsif ( $cmd =~ /^if\s++(.*+)$/i ) { # :if - General test of %D values
231
my $test = $1; # $1 =~ doesn't work for me
232
if( $test !~ DEFINE_NAME_IN_CONTEXT_RE ) {
0 commit comments