summaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-01 04:35:58 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-05-01 04:35:58 +0000
commit75d28f887089c8582b63a64cf5df1d0270f15cc1 (patch)
tree1a274ad80a96f2546c0aba4701fd0c0e78857b5b /vm.h
parentea2cb282aeba0457aa775d5dbfa1da6810fafa45 (diff)
* yarvcore.h, compile.c (set_arguments): support post arguments.
* test/ruby/test_method.rb: add tests for above. * test/ruby/test_proc.rb: ditto. * proc.c: fix an arity bug ([ruby-core:11029]). * vm.c, vm.h, insns.def, vm_dump.h: fix bmethod process. * vm.c: support block argument on block parameter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm.h b/vm.h
index cccd4af365..930947086d 100644
--- a/vm.h
+++ b/vm.h
@@ -245,6 +245,9 @@ default: \
} \
}
+#define RUBYVM_CFUNC_FRAME_P(cfp) \
+ ((cfp)->magic == FRAME_MAGIC_CFUNC)
+
/*
* Excception
*/