OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [lib/] [assert.c] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 hellwig
#include <stdio.h>
2
#include <stdlib.h>
3
#ifndef EXPORT
4
#define EXPORT
5
#endif
6
 
7
static char rcsid[] = "$Id: assert.c,v 1.2 2001/06/07 22:30:08 drh Exp $";
8
 
9
EXPORT int _assert(char *e, char *file, int line) {
10
        fprintf(stderr, "assertion failed:");
11
        if (e)
12
                fprintf(stderr, " %s", e);
13
        if (file)
14
                fprintf(stderr, " file %s", file);
15
        fprintf(stderr, " line %d\n", line);
16
        fflush(stderr);
17
        abort();
18
        return 0;
19
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.