From 0d0ef6eccc50ed95d8babcf5381426c70c4d4b30 Mon Sep 17 00:00:00 2001
From: ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Thu, 5 Jul 2007 10:49:45 +0000
Subject: * yarvcore.h: rename rb_control_frame_t#magic to flag. * vm.h: add
 VM_FRAME_TYPE() and VM_FRAME_FLAG(). * cont.c, insnhelper.ci, insns.def,
 vm.c, vm_dump.c,   vm_evalbody.ci, yarvcore.c: apply above changes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
---
 insns.def | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'insns.def')

diff --git a/insns.def b/insns.def
index 471f2a5bfb..63f1ca1153 100644
--- a/insns.def
+++ b/insns.def
@@ -1406,7 +1406,7 @@ throw
 		    rb_bug("VM (throw): can't find break base.");
 		}
 
-		if (cfp->magic == FRAME_MAGIC_LAMBDA) {
+		if (VM_FRAME_TYPE(cfp) == FRAME_MAGIC_LAMBDA) {
 		    /* lambda{... break ...} */
 		    is_orphan = 0;
 		    pt = dfp;
@@ -1465,7 +1465,7 @@ throw
 		 */
 		while ((VALUE *) cfp < th->stack + th->stack_size) {
 		    if (GET_DFP() == dfp) {
-			if (cfp->magic == FRAME_MAGIC_LAMBDA) {
+			if (VM_FRAME_TYPE(cfp) == FRAME_MAGIC_LAMBDA) {
 			    /* in lambda */
 			    is_orphan = 0;
 			    break;
-- 
cgit v1.2.3

