@@ -80,7 +80,7 @@ macro_rules! pop_stack {
8080 }
8181}
8282
83- macro_rules! raise {
83+ macro_rules! unwind {
8484 ( $call_stack: expr, $traceback: expr, $exception: expr, $exc_type: expr, $value: expr) => { {
8585 let frame = $call_stack. last_mut( ) . unwrap( ) ;
8686 loop {
@@ -379,7 +379,7 @@ impl<EP: EnvProxy> Processor<EP> {
379379 Instruction :: RaiseVarargs ( 1 ) => {
380380 let exception = pop_stack ! ( call_stack. last_mut( ) . unwrap( ) . var_stack) ;
381381 let exc_type = exception. clone ( ) ;
382- raise ! ( call_stack, self . primitive_objects. none. clone( ) , exception, exc_type, self . primitive_objects. none. clone( ) ) ;
382+ unwind ! ( call_stack, self . primitive_objects. none. clone( ) , exception, exc_type, self . primitive_objects. none. clone( ) ) ;
383383 }
384384 Instruction :: RaiseVarargs ( 2 ) => {
385385 panic ! ( "RaiseVarargs(2) not implemented." )
@@ -405,7 +405,7 @@ impl<EP: EnvProxy> Processor<EP> {
405405 match ret {
406406 PyResult :: Return ( obj_ref) => call_stack. last_mut ( ) . unwrap ( ) . var_stack . push ( obj_ref) ,
407407 PyResult :: Raise ( exception, exc_type) => {
408- raise ! ( call_stack, self . primitive_objects. none. clone( ) , exception, exc_type, self . primitive_objects. none. clone( ) )
408+ unwind ! ( call_stack, self . primitive_objects. none. clone( ) , exception, exc_type, self . primitive_objects. none. clone( ) )
409409 } ,
410410 PyResult :: Error ( err) => return PyResult :: Error ( err)
411411 } ;
0 commit comments