diff options
Diffstat (limited to 'Master/tlpkg/tlperl/lib/auto/POSIX/assert.al')
-rw-r--r-- | Master/tlpkg/tlperl/lib/auto/POSIX/assert.al | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl/lib/auto/POSIX/assert.al b/Master/tlpkg/tlperl/lib/auto/POSIX/assert.al new file mode 100644 index 00000000000..fbeefa8583c --- /dev/null +++ b/Master/tlpkg/tlperl/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 96 "..\..\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; |