Sha256: 024cc3365e3cddd8bd6c9a632b9145d25d01968965694ee29b223db82e719e2b

Contents?: true

Size: 962 Bytes

Versions: 1

Compression:

Stored size: 962 Bytes

Contents

#ifndef __RUBY_PRIVATE_H
#define __RUBY_PRIVATE_H

#include "extconf.h"
#include RUBY_MJIT_HEADER

#include <ruby.h>
#include <ruby/re.h>

// Default this to zero unless the MJIT header already has a value
#ifndef GC_DEBUG_STRESS_TO_CLASS
#define GC_DEBUG_STRESS_TO_CLASS 0
#endif

// This is the correct default for GC_ENABLE_INCREMENTAL_MARK
#ifndef GC_ENABLE_INCREMENTAL_MARK
#define GC_ENABLE_INCREMENTAL_MARK USE_RINCGC
#endif

// Prototype for functions that are exposed with external linkage, but not in
// the public headers.
size_t rb_obj_memsize_of(VALUE obj);

// Bring in an appropriate version of the rb_objspace structs; this will include
// one of the files under ruby_private/ depending on version.
#include "gc_private.h"

#define CLASS_OR_MODULE_P(obj)                                                                                         \
  (!SPECIAL_CONST_P(obj) && (BUILTIN_TYPE(obj) == T_CLASS || BUILTIN_TYPE(obj) == T_MODULE))

#endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_memprofiler_pprof-0.0.4 ext/ruby_memprofiler_pprof_ext/ruby_private.h