Expand null macros to `do {} while (0)', not to nothing.
This commit is contained in:
parent
3c8e94233f
commit
52c71abc12
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: systm.h,v 1.263 2014/04/03 15:22:57 christos Exp $ */
|
||||
/* $NetBSD: systm.h,v 1.264 2014/07/17 14:55:32 riastradh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1988, 1991, 1993
|
||||
|
@ -527,7 +527,7 @@ void assert_sleepable(void);
|
|||
#if defined(DEBUG)
|
||||
#define ASSERT_SLEEPABLE() assert_sleepable()
|
||||
#else /* defined(DEBUG) */
|
||||
#define ASSERT_SLEEPABLE() /* nothing */
|
||||
#define ASSERT_SLEEPABLE() do {} while (0)
|
||||
#endif /* defined(DEBUG) */
|
||||
|
||||
vaddr_t calc_cache_size(vsize_t , int, int);
|
||||
|
|
Loading…
Reference in New Issue