From d84dbbc45590e024143f7d081b665e590f18d14d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 8 Jun 2016 09:59:11 -0600 Subject: [PATCH] Add a comment to assert.h --- include/assert.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/assert.h b/include/assert.h index 2302a7b8ebc..c636dae9a98 100644 --- a/include/assert.h +++ b/include/assert.h @@ -1,7 +1,7 @@ /**************************************************************************** * 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 * * Redistribution and use in source and binary forms, with or without @@ -103,6 +103,11 @@ # 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 # define assert(f) #else