Ruby
3.4.0dev (2024-11-05 revision 348a53415339076afc4a02fcd09f3ae36e9c4c61)
include
ruby
internal
attr
nonnull.h
Go to the documentation of this file.
1
#ifndef RBIMPL_ATTR_NONNULL_H
/*-*-C++-*-vi:se ft=cpp:*/
2
#define RBIMPL_ATTR_NONNULL_H
23
#include "
ruby/internal/has/attribute.h
"
24
26
#if RBIMPL_HAS_ATTRIBUTE(nonnull)
27
# define RBIMPL_ATTR_NONNULL(list) __attribute__((__nonnull__ list))
28
# define RBIMPL_NONNULL_ARG(arg) RBIMPL_ASSERT_NOTHING
29
#else
30
# define RBIMPL_ATTR_NONNULL(list)
/* void */
31
# define RBIMPL_NONNULL_ARG(arg) RUBY_ASSERT(arg)
32
#endif
33
34
#endif
/* RBIMPL_ATTR_NONNULL_H */
attribute.h
Defines RBIMPL_HAS_ATTRIBUTE.
Generated by
1.9.1