Namespaces
Variants
Actions

Standard library header <assert.h>

From cppreference.com
< c‎ | header
 
C
 
Standard Library headers

This header is part of the error handling library.

Macros

aborts the program if the user-specified condition is not true. May be disabled for release builds
(function macro) [edit]

[edit] Synopsis

#if __STDC_VERSION__ >= 202311L
#   define __STDC_VERSION_ASSERT_H__ 202311L
#   ifdef NDEBUG
#       define assert(...) ((void)0)
#   else
#       define assert(...) /* implementation-defined */
#   endif
#else
#   ifdef NDEBUG
#       define assert(condition) ((void)0)
#   else
#       define assert(condition) /* implementation-defined */
#   endif
#endif

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant