diff options
Diffstat (limited to 'Master/xemtex/perl/lib/auto/POSIX/assert.al')
-rw-r--r-- | Master/xemtex/perl/lib/auto/POSIX/assert.al | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/xemtex/perl/lib/auto/POSIX/assert.al b/Master/xemtex/perl/lib/auto/POSIX/assert.al new file mode 100644 index 00000000000..def2f62f767 --- /dev/null +++ b/Master/xemtex/perl/lib/auto/POSIX/assert.al @@ -0,0 +1,15 @@ +# NOTE: Derived from ..\..\lib\POSIX.pm. +# Changes made here will be lost when autosplit is run again. +# See AutoSplit.pm. +package POSIX; + +#line 77 "..\..\lib\POSIX.pm (autosplit into ..\..\lib\auto\POSIX\assert.al)" +sub assert { + usage "assert(expr)" if @_ != 1; + if (!$_[0]) { + croak "Assertion failed"; + } +} + +# end of POSIX::assert +1; |