Ruby 4.1.0dev (2026-03-23 revision f8459601271ebbc5e1efb101387da955ed1faabb)
Macros
nonnull.h File Reference

(f8459601271ebbc5e1efb101387da955ed1faabb)

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.