summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/lib/auto/POSIX/assert.al
blob: fbeefa8583cd357babc55f913fa9f975cc3a49d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;