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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [include/] [assert.h] - Rev 1775

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

#ifndef	__ASSERT_H
#define	__ASSERT_H
#include <features.h>
 
/* If NDEBUG is defined, do nothing.
   If not, and EXPRESSION is zero, print an error message and abort.  */
 
#ifdef	NDEBUG
 
#define	assert(expr)		((void) 0)
 
#else /* Not NDEBUG.  */
 
extern void __assert __P((const char *, const char *, int));
 
#define	assert(expr)							      \
  ((void) ((expr) ||							      \
	   (__assert (__STRING(expr),				      \
			   __FILE__, __LINE__), 0)))
 
#endif /* NDEBUG.  */
 
#endif /* __ASSERT_H */
 

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

powered by: WebSVN 2.1.0

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