File:  [MW Coherent from dump] / coherent / b / etc / fsck / assert.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/*
 * assert.h
 * C diagnostics header.
 * Draft Proposed ANSI C Standard, Section 4.2, 12/7/88 draft.
 *
 * Special copy to replace fprintf() with printf()
 */
#ifndef	ASSERT_H
#define	ASSERT_H	ASSERT_H

#if	NDEBUG
#define	assert(p)
#else
#include <stdio.h>
#define	assert(p)	if (!(p)) {\
				printf("%s: %d: assert(%s) failed.\n",\
					__FILE__, __LINE__, #p);\
				exit(1);\
			}
#endif
#endif
/* end of assert.h */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.