Udipe 1.0
Solving the riddle of high-throughput UDP
Loading...
Searching...
No Matches
Macros
pointer.h File Reference

Pointer shenanigans. More...

Go to the source code of this file.

Macros

#define UDIPE_NON_NULL_ARGS
 
#define UDIPE_NON_NULL_SPECIFIC_ARGS(...)
 
#define UDIPE_NON_NULL_RESULT
 

Detailed Description

This header provides a couple of utilities that can be used to assert that pointers cannot be NULL, in a manner that may affect code optimizations.

Macro Definition Documentation

◆ UDIPE_NON_NULL_ARGS

#define UDIPE_NON_NULL_ARGS

Assertion that none of a function's pointer arguments can be NULL

This may affect compiler optimizations, and is otherwise a useful documentation hint.

◆ UDIPE_NON_NULL_RESULT

#define UDIPE_NON_NULL_RESULT

Assertion that a function's pointer result cannot be NULL

This may affect compiler optimizations, and is otherwise a useful documentation hint.

◆ UDIPE_NON_NULL_SPECIFIC_ARGS

#define UDIPE_NON_NULL_SPECIFIC_ARGS (   ...)

Assertion that some of a function's pointer arguments cannot be NULL

The arguments are designated using 1-based indexing, i.e. 1 is the first argument, 2 is the second argument, etc.

This may affect compiler optimizations, and is otherwise a useful documentation hint.