Add a comment to assert.h
This commit is contained in:
parent
982982d62b
commit
d84dbbc455
@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* include/assert.h
|
* include/assert.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007-2009, 2011-2013, 2015 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007-2009, 2011-2013, 2015-2016 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -103,6 +103,11 @@
|
|||||||
|
|
||||||
# endif /* CONFIG_DEBUG */
|
# endif /* CONFIG_DEBUG */
|
||||||
|
|
||||||
|
/* The C standard states that if NDEBUG is defined, assert will do nothing.
|
||||||
|
* Users can define and undefine NDEBUG as they see fit to choose when assert
|
||||||
|
* does something or does not do anything.
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
# define assert(f)
|
# define assert(f)
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user