1 #ifndef RBIMPL_NEWOBJ_H
2 #define RBIMPL_NEWOBJ_H
24 #include "ruby/internal/cast.h"
32 #define OBJSETUP rb_obj_setup
33 #define CLONESETUP rb_clone_setup
34 #define DUPSETUP rb_dup_setup
124 rb_clone_setup(VALUE clone, VALUE obj)
131 RBIMPL_ATTR_DEPRECATED(("This is no longer how Object#dup works."))
143 rb_dup_setup(VALUE dup, VALUE obj)
150 #endif /* RBIMPL_NEWOBJ_H */
Defines RBIMPL_ATTR_DEPRECATED.
#define RBIMPL_ATTR_DEPRECATED(msg)
Wraps (or simulates) [[deprecated]]
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Defines enum ruby_fl_type.
VALUE rb_singleton_class_clone(VALUE obj)
Clones a singleton class.
void rb_singleton_class_attached(VALUE klass, VALUE obj)
Attaches a singleton class to its corresponding object.
VALUE rb_obj_class(VALUE obj)
Queries the class of an object.
VALUE rb_obj_setup(VALUE obj, VALUE klass, VALUE type)
Fills common fields in the object.
VALUE type(ANYARGS)
ANYARGS-ed function type.
void rb_copy_generic_ivar(VALUE clone, VALUE obj)
Copies the list of instance variables.
Defines enum ruby_special_consts.
uintptr_t VALUE
Type that represents a Ruby object.