Software APIs
Macros
assert.h File Reference

(ae68723)

C library diagnostics. More...

Go to the source code of this file.

Macros

#define static_assert   _Static_assert
 
#define assert(do_not_use)   static_assert(false, "do not use assert(); use CHECK() instead")
 

Detailed Description

C library diagnostics.

This header implements the assert.h standard header, specified in S7.2 of C11.

While not required by S4p6 as part of freestanding C, this file is useful because it gives us a consistent spelling of static_assert across C and C++. assert should not be used in device code.

Definition in file assert.h.