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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [include/] [assert.h] - Blame information for rev 1775

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

Line No. Rev Author Line
1 199 simons
#ifndef __ASSERT_H
2
#define __ASSERT_H
3
#include <features.h>
4
 
5
/* If NDEBUG is defined, do nothing.
6
   If not, and EXPRESSION is zero, print an error message and abort.  */
7
 
8
#ifdef  NDEBUG
9
 
10
#define assert(expr)            ((void) 0)
11
 
12
#else /* Not NDEBUG.  */
13
 
14
extern void __assert __P((const char *, const char *, int));
15
 
16
#define assert(expr)                                                          \
17
  ((void) ((expr) ||                                                          \
18
           (__assert (__STRING(expr),                                 \
19
                           __FILE__, __LINE__), 0)))
20
 
21
#endif /* NDEBUG.  */
22
 
23
#endif /* __ASSERT_H */

powered by: WebSVN 2.1.0

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