Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / usr / share / awk / | server ip : 172.67.156.115 your ip : 172.70.127.231 H O M E |
Filename | /usr/share/awk/assert.awk |
Size | 382 |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 27-Apr-2025 09:55 |
Last modified | 03-Jul-2013 04:42 |
Last accessed | 05-Jul-2025 20:40 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
# assert --- assert that a condition is true. Otherwise exit.
#
# Arnold Robbins, [email protected], Public Domain
# May, 1993
function assert(condition, string)
{
if (! condition) {
printf("%s:%d: assertion failed: %s\n",
FILENAME, FNR, string) > "/dev/stderr"
_assert_exit = 1
exit 1
}
}
END {
if (_assert_exit)
exit 1
}
#
# Arnold Robbins, [email protected], Public Domain
# May, 1993
function assert(condition, string)
{
if (! condition) {
printf("%s:%d: assertion failed: %s\n",
FILENAME, FNR, string) > "/dev/stderr"
_assert_exit = 1
exit 1
}
}
END {
if (_assert_exit)
exit 1
}