Sha256: 687c4132b5815b30b3a7f65941fdd79ad2635050b16dfa213db1a48e856d2102
Contents?: true
Size: 777 Bytes
Versions: 4
Compression:
Stored size: 777 Bytes
Contents
#include <ruby.h> #include "clock_id.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?"))); rb_define_singleton_method(native_extension_module, "clock_id_for", clock_id_for, 1); // from clock_id.h } static VALUE native_working_p(VALUE self) { self_test_clock_id(); return Qtrue; }
Version data entries
4 entries across 4 versions & 1 rubygems