| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: assert.h,v 1.20 2008/11/02 14:27:44 christos Exp $ */ | | 1 | /* $NetBSD: assert.h,v 1.21 2011/08/26 01:10:49 joerg Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1992, 1993 | | 4 | * Copyright (c) 1992, 1993 |
5 | * The Regents of the University of California. All rights reserved. | | 5 | * The Regents of the University of California. All rights reserved. |
6 | * (c) UNIX System Laboratories, Inc. | | 6 | * (c) UNIX System Laboratories, Inc. |
7 | * All or some portions of this file are derived from material licensed | | 7 | * All or some portions of this file are derived from material licensed |
8 | * to the University of California by American Telephone and Telegraph | | 8 | * to the University of California by American Telephone and Telegraph |
9 | * Co. or Unix System Laboratories, Inc. and are reproduced herein with | | 9 | * Co. or Unix System Laboratories, Inc. and are reproduced herein with |
10 | * the permission of UNIX System Laboratories, Inc. | | 10 | * the permission of UNIX System Laboratories, Inc. |
11 | * | | 11 | * |
12 | * Redistribution and use in source and binary forms, with or without | | 12 | * Redistribution and use in source and binary forms, with or without |
13 | * modification, are permitted provided that the following conditions | | 13 | * modification, are permitted provided that the following conditions |
14 | * are met: | | 14 | * are met: |
| @@ -88,19 +88,19 @@ | | | @@ -88,19 +88,19 @@ |
88 | #if defined(__lint__) | | 88 | #if defined(__lint__) |
89 | #define __assert_function__ (__static_cast(const void *,0)) | | 89 | #define __assert_function__ (__static_cast(const void *,0)) |
90 | #elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L | | 90 | #elif defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
91 | #define __assert_function__ __func__ | | 91 | #define __assert_function__ __func__ |
92 | #elif __GNUC_PREREQ__(2, 6) | | 92 | #elif __GNUC_PREREQ__(2, 6) |
93 | #define __assert_function__ __PRETTY_FUNCTION__ | | 93 | #define __assert_function__ __PRETTY_FUNCTION__ |
94 | #else | | 94 | #else |
95 | #define __assert_function__ (__static_cast(const void *,0)) | | 95 | #define __assert_function__ (__static_cast(const void *,0)) |
96 | #endif | | 96 | #endif |
97 | | | 97 | |
98 | #ifndef __ASSERT_DECLARED | | 98 | #ifndef __ASSERT_DECLARED |
99 | #define __ASSERT_DECLARED | | 99 | #define __ASSERT_DECLARED |
100 | __BEGIN_DECLS | | 100 | __BEGIN_DECLS |
101 | void __assert(const char *, int, const char *); | | 101 | __dead void __assert(const char *, int, const char *); |
102 | void __assert13(const char *, int, const char *, const char *); | | 102 | __dead void __assert13(const char *, int, const char *, const char *); |
103 | void __diagassert(const char *, int, const char *); | | 103 | void __diagassert(const char *, int, const char *); |
104 | void __diagassert13(const char *, int, const char *, const char *); | | 104 | void __diagassert13(const char *, int, const char *, const char *); |
105 | __END_DECLS | | 105 | __END_DECLS |
106 | #endif /* __ASSERT_DECLARED */ | | 106 | #endif /* __ASSERT_DECLARED */ |