Skip to content

Commit

Permalink
+1 test pass: should allow replace CFUNC methods using ruby after the…
Browse files Browse the repository at this point in the history
…y are called and compiled at runtime (through other method)
  • Loading branch information
tario committed Feb 9, 2012
1 parent 606ef6a commit 31e2534
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/fastruby/translator/translator.rb
Expand Up @@ -1403,6 +1403,12 @@ def encode_address(recvtype,signature,mname,call_tree,inference_complete,convent
#{cfunc_address_name} = default_address;
#{update_cfunc_method}();
rb_iterate(#{anonymous_function{|funcname|
"static VALUE #{funcname}(VALUE recv) {
return rb_funcall(recv, #{intern_num :observe}, 1, #{literal_value mname});
}
"
}},fastruby_method,#{update_cfunc_method},Qnil);
if (address==0) {
address = malloc(sizeof(void*));
Expand Down

0 comments on commit 31e2534

Please sign in to comment.