Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Standard library header <assert.h>

      From cppreference.com
      <c‎ |header
       
       
       

      This header is part of theerror handling library.

      Macros

      aborts the program if the user-specified condition is nottrue. 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
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/header/assert&oldid=180040"

      [8]ページ先頭

      ©2009-2025 Movatter.jp