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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [include/] [assert.h] - Blame information for rev 1773

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

Line No. Rev Author Line
1 1005 ivang
/*
2
        assert.h
3
*/
4
 
5
#ifdef __cplusplus
6
extern "C" {
7
#endif
8
 
9
#include "_ansi.h"
10
 
11
#undef assert
12
 
13
#ifdef NDEBUG           /* required by ANSI standard */
14
#define assert(p)       ((void)0)
15
#else
16
 
17
#ifdef __STDC__
18
#define assert(e)       ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
19
#else   /* PCC */
20
#define assert(e)       ((e) ? (void)0 : __assert(__FILE__, __LINE__, "e"))
21
#endif
22
 
23
#endif /* NDEBUG */
24
 
25
void _EXFUN(__assert,(const char *, int, const char *));
26
 
27
#ifdef __cplusplus
28
}
29
#endif

powered by: WebSVN 2.1.0

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