Changeset 366 in dev for trunk/abdev/BasicCompiler_Common/src
- Timestamp:
- Nov 11, 2007, 6:38:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/Exception.cpp
r365 r366 315 315 compiler.codeGenerator.opfix( tryScopes.back().GetPertialScheduleForFinallyAddress(), compiler.codeGenerator.GetNativeCodeSize() ); 316 316 } 317 void EndTryCommand( )317 void EndTryCommand( bool isNoWarning ) 318 318 { 319 319 if( tryScopes.size() == 0 ) 320 320 { 321 SetError(1 ,NULL,cp);321 SetError(12,"End Try",cp); 322 322 return; 323 323 } 324 324 325 if( ! tryScopes.back().IsDefinedFinally() && !tryScopes.back().IsCatched() )325 if( !isNoWarning && !tryScopes.back().IsDefinedFinally() && !tryScopes.back().IsCatched() ) 326 326 { 327 327 // CatchもFinallyも存在しないとき … … 351 351 tryScopes.back().EndTry(); 352 352 tryScopes.pop_back(); 353 } 354 355 void InspectTryScope() 356 { 357 while( tryScopes.size() > 0 ) 358 { 359 SetError(22, "Try", tryScopes.back().GetSourceCodePos() ); 360 361 EndTryCommand( true ); 362 } 353 363 } 354 364
Note:
See TracChangeset
for help on using the changeset viewer.