ext/cs__common/cs__common.h in contrast-agent-4.12.0 vs ext/cs__common/cs__common.h in contrast-agent-4.13.0
- old
+ new
@@ -32,9 +32,17 @@
static VALUE rb_sym_alias_instance;
static VALUE rb_sym_alias_singleton;
static VALUE rb_sym_prepend_instance;
static VALUE rb_sym_prepend_singleton;
+/*
+ * Check if ruby version is < 3.0.0.
+ * We are using this for handling ancestors of included modules.
+ * Since this is fixed after Ruby 3.0.0 we should remove this after
+ * dropping support for older versions, as no longer needed.
+ */
+int rb_ver_below_three();
+
void patch_via_funchook(void *original_function, void *hook_function);
void contrast_alias_method(const VALUE target, const char *to,
const char *from);