mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +01:00
Special-case "switch" in _c_base.pm (#37)
This commit is contained in:
parent
2f190a57c3
commit
ebd36fdcc7
@ -287,7 +287,16 @@ sub preprocess_code {
|
||||
$ret =~ s/^\s+//;
|
||||
$ret =~ s/\s+$//;
|
||||
|
||||
if(not length $ret or $ret eq "else" or $ret eq "while" or $ret eq "if" or $ret eq "for" or $ident eq "for" or $ident eq "while" or $ident eq "if") {
|
||||
if(not length $ret
|
||||
or $ret eq "switch"
|
||||
or $ret eq "else"
|
||||
or $ret eq "while"
|
||||
or $ret eq "if"
|
||||
or $ret eq "for"
|
||||
or $ident eq "switch"
|
||||
or $ident eq "for"
|
||||
or $ident eq "while"
|
||||
or $ident eq "if") {
|
||||
$precode .= "$ret $ident ($params) $potential_body";
|
||||
next;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user