Define away __assert_function__ if __lint__.

This commit is contained in:
gmcgarry 2008-08-17 00:24:35 +00:00
parent bd54417ad9
commit ff2c02da97
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: assert.h,v 1.18 2005/02/03 04:39:32 perry Exp $ */
/* $NetBSD: assert.h,v 1.19 2008/08/17 00:24:35 gmcgarry Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -84,7 +84,9 @@
#endif /* _DIAGNOSTIC */
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#if defined(__lint__)
#define __assert_function__ (__static_cast(const void *,0))
#elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define __assert_function__ __func__
#elif __GNUC_PREREQ__(2, 6)
#define __assert_function__ __PRETTY_FUNCTION__