1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r24515: use fatal() wrapper instead of die() directly

metze
This commit is contained in:
Stefan Metzmacher 2007-08-17 11:24:25 +00:00 committed by Gerald (Jerry) Carter
parent b7d6ac5215
commit d90a0d3ba1

View File

@ -7,6 +7,7 @@
package Parse::Pidl::Samba4::Header;
use strict;
use Parse::Pidl qw(fatal);
use Parse::Pidl::Typelist qw(mapTypeName scalar_is_reference);
use Parse::Pidl::Util qw(has_property is_constant);
use Parse::Pidl::Samba4 qw(is_intree);
@ -149,13 +150,13 @@ sub HeaderEnum($$)
$name = $1;
$value = $2;
$with_val = 1;
die ("you can't mix enum member with values and without values!")
fatal($e->{ORIGINAL}, "you can't mix enum member with values and without values!")
unless ($without_val == 0);
} else {
$name = $t;
$value = $count++;
$without_val = 1;
die ("you can't mix enum member with values and without values!")
fatal($e->{ORIGINAL}, "you can't mix enum member with values and without values!")
unless ($with_val == 0);
}
pidl "#define $name ( $value )\n";