Sha256: 225066e438f5b42a4800d6732352b6749a078b5c883f70a639c93ea3cad34f46

Contents?: true

Size: 640 Bytes

Versions: 2

Compression:

Stored size: 640 Bytes

Contents

#include <ruby.h>
#include <stdio.h>

static VALUE native_working_p(VALUE self);

void Init_ddtrace_profiling_native_extension(void) {
  VALUE datadog_module = rb_define_module("Datadog");
  VALUE profiling_module = rb_define_module_under(datadog_module, "Profiling");
  VALUE native_extension_module = rb_define_module_under(profiling_module, "NativeExtension");

  rb_define_singleton_method(native_extension_module, "native_working?", native_working_p, 0);
  rb_funcall(native_extension_module, rb_intern("private_class_method"), 1, ID2SYM(rb_intern("native_working?")));
}

static VALUE native_working_p(VALUE self) {
  return Qtrue;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ddtrace-0.53.0 ext/ddtrace_profiling_native_extension/profiling.c
ddtrace-0.52.0 ext/ddtrace_profiling_native_extension/profiling.c