Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_tlsv12/sys/src/cmd/aux/antiword/fail.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
/*
2
 * fail.c
3
 * Copyright (C) 1998 A.J. van Os
4
 *
5
 * Description:
6
 * An alternative form of assert()
7
 */
8
 
9
#include <stdlib.h>
10
#include "antiword.h"
11
 
12
#if !defined(NDEBUG)
13
void
14
__fail(char *szExpression, char *szFilename, int iLineNumber)
15
{
16
	if (szExpression == NULL || szFilename == NULL) {
17
		werr(1, "Internal error: no expression");
18
	}
19
#if defined(DEBUG)
20
	fprintf(stderr, "%s[%3d]: Internal error in '%s'\n",
21
		szFilename, iLineNumber, szExpression);
22
#endif /* DEBUG */
23
	werr(1, "Internal error in '%s' in file %s at line %d",
24
		szExpression, szFilename, iLineNumber);
25
} /* end of __fail */
26
#endif /* !NDEBUG */