Commit e0620bd4 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

bescripts: Show an error, if an unknown register requirement flag is used.

parent ddb1eaec
......@@ -1000,13 +1000,15 @@ sub generate_requirements {
my $result;
if (defined($flags)) {
foreach my $f (split(/|/, $flags)) {
foreach my $f (split(/\|/, $flags)) {
if ($f eq "I") {
$extra .= "\n\t.ignore = true,";
} elsif ($f eq "a") {
$extra .= "\n\t.aligned = true,";
} elsif ($f eq "2" or $f eq "4" or $f eq "8") {
$width = int($f);
} else {
die("Fatal error: unknown flag '$f'")
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment