ext/cs__common/cs__common.c in contrast-agent-6.2.0 vs ext/cs__common/cs__common.c in contrast-agent-6.3.0
- old
+ new
@@ -95,13 +95,14 @@
/* check if method is prepended and register instance alias or prepend patch */
/* module name c_char "Module"; */
/* method name c_char "method"; */
/* c_func => pointer */
-VALUE contrast_check_and_register_instance_patch(
- const char *module_name, const char *method_name,
- VALUE(c_fn)(const int, VALUE *, const VALUE)) {
+VALUE contrast_check_and_register_instance_patch(const char *module_name,
+ const char *method_name,
+ VALUE(c_fn)(const int, VALUE *,
+ const VALUE)) {
VALUE object, method, is_prepended, patch_type;
/* check if method is prepended */
object = rb_const_get(rb_cObject, rb_intern(module_name));
method = ID2SYM(rb_intern(method_name));
@@ -289,7 +290,7 @@
/* defined for direct object check */
rb_define_singleton_method(rb_cObject, "cs__prepended?",
contrast_check_prepended, 2);
/* defined for object lookout */
rb_define_singleton_method(assess, "cs__object_method_prepended?",
- contrast_lookout_prepended, 4);
+ contrast_lookout_prepended, 3);
}