Ruby 4.1.0dev (2026-09-28 revision fb39511f19e7387c9997c93779d9127c5253bafb)
Macros
nonnull.h File Reference

(fb39511f19e7387c9997c93779d9127c5253bafb)

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.