Added Cyg-Win
This commit is contained in:
parent
82cbc206eb
commit
413c315806
10586 changed files with 3806249 additions and 0 deletions
23
Agent-Windows/OGP64/usr/share/awk/assert.awk
Normal file
23
Agent-Windows/OGP64/usr/share/awk/assert.awk
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# assert --- assert that a condition is true. Otherwise, exit.
|
||||
#
|
||||
# This file and how to use it are described in the manual.
|
||||
# Therefore, we respectfully advise you to Read The Fine Manual
|
||||
# for more information.
|
||||
#
|
||||
# Arnold Robbins, arnold@skeeve.com, 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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue