X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/e5568f75972dfc723778653c11cb6b4dc825716a..13fec9890cf095cc781fdf7b8917cb03bf32dd4c:/osfmk/kern/assert.h diff --git a/osfmk/kern/assert.h b/osfmk/kern/assert.h index 42718d5ca..fc390b5aa 100644 --- a/osfmk/kern/assert.h +++ b/osfmk/kern/assert.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -56,16 +56,19 @@ /* assert.h 4.2 85/01/21 */ #include +#include #ifdef MACH_KERNEL_PRIVATE #include #endif +__BEGIN_DECLS /* Assert error */ extern void Assert( const char *file, int line, const char *expression); +__END_DECLS #if MACH_ASSERT @@ -73,11 +76,15 @@ extern void Assert( ((ex) ? (void)0 : Assert(__FILE__, __LINE__, # ex)) #define assert_static(x) assert(x) +#define __assert_only + #else /* MACH_ASSERT */ #define assert(ex) ((void)0) #define assert_static(ex) +#define __assert_only __unused + #endif /* MACH_ASSERT */ #endif /* _KERN_ASSERT_H_ */