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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc2/] [newlib/] [libc/] [include/] [assert.h] - Diff between revs 207 and 520

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 520
/*
/*
        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(__e) ((void)0)
# define assert(__e) ((void)0)
#else
#else
# define assert(__e) ((__e) ? (void)0 : __assert_func (__FILE__, __LINE__, \
# define assert(__e) ((__e) ? (void)0 : __assert_func (__FILE__, __LINE__, \
                                                       __ASSERT_FUNC, #__e))
                                                       __ASSERT_FUNC, #__e))
 
 
# ifndef __ASSERT_FUNC
# ifndef __ASSERT_FUNC
  /* Use g++'s demangled names in C++.  */
  /* Use g++'s demangled names in C++.  */
#  if defined __cplusplus && defined __GNUC__
#  if defined __cplusplus && defined __GNUC__
#   define __ASSERT_FUNC __PRETTY_FUNCTION__
#   define __ASSERT_FUNC __PRETTY_FUNCTION__
 
 
  /* C99 requires the use of __func__.  */
  /* C99 requires the use of __func__.  */
#  elif __STDC_VERSION__ >= 199901L
#  elif __STDC_VERSION__ >= 199901L
#   define __ASSERT_FUNC __func__
#   define __ASSERT_FUNC __func__
 
 
  /* Older versions of gcc don't have __func__ but can use __FUNCTION__.  */
  /* Older versions of gcc don't have __func__ but can use __FUNCTION__.  */
#  elif __GNUC__ >= 2
#  elif __GNUC__ >= 2
#   define __ASSERT_FUNC __FUNCTION__
#   define __ASSERT_FUNC __FUNCTION__
 
 
  /* failed to detect __func__ support.  */
  /* failed to detect __func__ support.  */
#  else
#  else
#   define __ASSERT_FUNC ((char *) 0)
#   define __ASSERT_FUNC ((char *) 0)
#  endif
#  endif
# endif /* !__ASSERT_FUNC */
# endif /* !__ASSERT_FUNC */
#endif /* !NDEBUG */
#endif /* !NDEBUG */
 
 
void _EXFUN(__assert, (const char *, int, const char *)
void _EXFUN(__assert, (const char *, int, const char *)
            _ATTRIBUTE ((__noreturn__)));
            _ATTRIBUTE ((__noreturn__)));
void _EXFUN(__assert_func, (const char *, int, const char *, const char *)
void _EXFUN(__assert_func, (const char *, int, const char *, const char *)
            _ATTRIBUTE ((__noreturn__)));
            _ATTRIBUTE ((__noreturn__)));
 
 
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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