Ruby 4.1.0dev (2026-09-12 revision 167fbe1408376f71d7c7d95aa1ff2f0c598bff03)
Macros
nonnull.h File Reference

(167fbe1408376f71d7c7d95aa1ff2f0c598bff03)

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PRISM_NONNULL(...)   __attribute__((__nonnull__(__VA_ARGS__)))
 Mark the parameters of a function as non-null.
 

Macro Definition Documentation

◆ PRISM_NONNULL

#define PRISM_NONNULL (   ...)    __attribute__((__nonnull__(__VA_ARGS__)))

Mark the parameters of a function as non-null.

This allows the compiler to warn if a caller passes NULL for a parameter that should never be NULL. The arguments are the 1-based indices of the parameters.

Definition at line 13 of file nonnull.h.