Changeset 146 for trunk/orca
- Timestamp:
- 05/11/06 17:36:18 (3 years ago)
- Location:
- trunk/orca
- Files:
-
- 2 modified
-
ovalue.c (modified) (1 diff)
-
qt/qorca.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/ovalue.c
r144 r146 2575 2575 { 2576 2576 int total = funcv.argc + funcv.refc; 2577 int level = data->used; 2578 2579 // NOTE: Natives may need to orHold() any complex argument values since 2580 // the stack no longer references them here. 2577 //int level = data->used; 2581 2578 2582 2579 funcv.native.addr( DATA_TOP - total ); 2583 assert( level == data->used ); 2580 2581 //assert( level == data->used ); // May not be same if orErrorThrown 2584 2582 data->used -= total; 2585 2583 } -
trunk/orca/qt/qorca.cpp
r144 r146 683 683 684 684 685 static int catchExit( )685 static int catchExit( OValue* a1 ) 686 686 { 687 687 if( orErrorThrown && orErrorIsType( OR_ERROR_THROW ) ) … … 689 689 if( orErrorThrown->error.msg == qEnv.atom_exec_exit ) 690 690 { 691 orCopyV( orTOS, *(orErrorThrown + 1) );691 orCopyV( a1, *(orErrorThrown + 1) ); 692 692 orErrorClear; 693 693 return qEnv.atom_exec_exit; … … 695 695 else if( orErrorThrown->error.msg == qEnv.atom_close ) 696 696 { 697 orCopyV( orTOS, *(orErrorThrown + 1) );697 orCopyV( a1, *(orErrorThrown + 1) ); 698 698 orErrorClear; 699 699 return qEnv.atom_close; … … 719 719 qEnv.dialog = saveDialog; 720 720 721 catchExit( );721 catchExit( a1 ); 722 722 } 723 723 else if( rec->type == WT_Widget ) … … 727 727 widget->show(); 728 728 qEnv.loop->exec(); 729 if( catchExit( ) == qEnv.atom_close )729 if( catchExit( a1 ) == qEnv.atom_close ) 730 730 widget->hide(); 731 731 } … … 745 745 // Update. 746 746 qEnv.loop->processEvents(); 747 catchExit( );747 catchExit( a1 ); 748 748 } 749 749 } … … 796 796 // Update. 797 797 qEnv.loop->processEvents(); 798 catchExit( );798 catchExit( a1 ); 799 799 } 800 800 }
