#include "runtime.h" #include #include RavaMethodRef_t* rava_method_ref_create(const char *class_name, const char *method_name, bool is_constructor, bool is_static) { RavaMethodRef_t *ref = calloc(1, sizeof(RavaMethodRef_t)); if (!ref) return NULL; ref->class_name = class_name ? strdup(class_name) : NULL; ref->method_name = method_name ? strdup(method_name) : NULL; ref->is_constructor = is_constructor; ref->is_static = is_static; ref->has_target = false; return ref; } void rava_method_ref_destroy(RavaMethodRef_t *ref) { if (!ref) return; free(ref->class_name); free(ref->method_name); free(ref); }