URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 39 |
Rev 40 |
/*
|
/*
|
assert.h
|
assert.h
|
*/
|
*/
|
|
|
#ifdef __cplusplus
|
#ifdef __cplusplus
|
extern "C" {
|
extern "C" {
|
#endif
|
#endif
|
|
|
#include "_ansi.h"
|
#include "_ansi.h"
|
|
|
#undef assert
|
#undef assert
|
|
|
#ifdef NDEBUG /* required by ANSI standard */
|
#ifdef NDEBUG /* required by ANSI standard */
|
#define assert(p) ((void)0)
|
#define assert(p) ((void)0)
|
#else
|
#else
|
|
|
#ifdef __STDC__
|
#ifdef __STDC__
|
#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
|
#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
|
#else /* PCC */
|
#else /* PCC */
|
#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, "e"))
|
#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, "e"))
|
#endif
|
#endif
|
|
|
#endif /* NDEBUG */
|
#endif /* NDEBUG */
|
|
|
void _EXFUN(__assert,(const char *, int, const char *));
|
void _EXFUN(__assert,(const char *, int, const char *));
|
|
|
#ifdef __cplusplus
|
#ifdef __cplusplus
|
}
|
}
|
#endif
|
#endif
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.