picow-http 0.12.1-4-g9d4fd13
HTTP server for the Raspberry Pi PicoW
assertion.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PICOW_HTTP_ASSERT(c)
 Assert that a condition is true. More...
 
#define AZ(x)   do { PICOW_HTTP_ASSERT((x) == 0); } while (0)
 Assert that a value is zero or NULL More...
 
#define AN(x)   do { PICOW_HTTP_ASSERT((x) != 0); } while (0)
 Assert that a value is not zero, or not NULL More...
 
#define ZERO_OBJ(to, sz)
 Set an object to all zero. More...
 
#define INIT_OBJ(to, type_magic)
 Initialize an object with its magic number. More...
 
#define FINI_OBJ(to)
 Finalize an object. More...
 
#define VALID_OBJ(ptr, type_magic)    ((ptr) != NULL && (ptr)->magic == (type_magic))
 Return true if an object is valid for its type. More...
 
#define CHECK_OBJ(ptr, type_magic)
 Assert that an object is valid for its type. More...
 
#define CHECK_OBJ_NOTNULL(ptr, type_magic)
 Assert that a pointer is not NULL, and points to an object that is valid for its type. More...
 
#define CHECK_OBJ_ORNULL(ptr, type_magic)
 Assert that a pointer is either NULL, or it points to an object that is valid for its type. More...
 
#define CAST_OBJ(to, from, type_magic)
 Cast a pointer, and if not NULL, assert that it points to an object that is valid for its type. More...
 
#define CAST_OBJ_NOTNULL(to, from, type_magic)
 Cast a pointer, and assert that it it is not NULL and points to an object that is valid for its type. More...
 

Detailed Description

Assertions, type checking, and pointer operations