/*
 *  Weave::FFI.define_singleton_method(object, method_name, symbol, arity)
 *  ----
 *
 *  Define a native ruby singleton method named `method_name` on instance `object`. The method is
 *  implemented by `symbol` and takes `arity` arguments.
 *
 *  This is a wrapper around the native `rb_define_singleton_method` function. It shouldn't be 
 *  used directly, use the Weave::rb_define_singleton_method function instead, it's much
 *  more convenient.
 *
 */

static VALUE weave_define_singleton_method (VALUE obj, VALUE object, VALUE method_name, VALUE symbol, VALUE arity) {