-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathassert.c
More file actions
23 lines (21 loc) · 1.04 KB
/
assert.c
File metadata and controls
23 lines (21 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*********************************************************************/
/* */
/* This Program Written by Paul Edwards. */
/* Released to the Public Domain */
/* */
/*********************************************************************/
/*********************************************************************/
/* */
/* assert.c - implementation of stuff in assert.h */
/* */
/*********************************************************************/
#include "cmsruntm.h"
#include "assert.h"
#include "stdio.h"
#include "stdlib.h"
int __assert(char *x, char *y, int z) {
fprintf(stderr, "assertion failed for statement %s in "
"file %s on line %d\n", x, y, z);
abort();
return (0);
}