Changeset 371 in dev for trunk/abdev/BasicCompiler_Common/src/Exception.cpp
- Timestamp:
- Nov 15, 2007, 6:57:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/Exception.cpp
r366 r371 173 173 if( !isDefinedFinally ) 174 174 { 175 Finally();175 SetError(); 176 176 } 177 177 … … 284 284 tryScopes.back().Catch( paramType ); 285 285 286 int backCp = cp; 287 288 char temporary[1024]; 286 289 if( paramType.IsObject() ) 287 290 { 288 int backCp = cp;289 290 char temporary[1024];291 291 sprintf( temporary, "Dim %s = Thread.CurrentThread().__GetThrowintParamObject() As %s", varName, paramType.GetClass().GetFullName().c_str() ); 292 292 MakeMiddleCode( temporary ); 293 293 ChangeOpcode( temporary ); 294 lstrcpy( temporary, "Thread.CurrentThread().__Catched()" );295 MakeMiddleCode( temporary);296 ChangeOpcode( temporary );297 298 cp = backCp; 299 }294 } 295 lstrcpy( temporary, "Thread.CurrentThread().__Catched()" ); 296 MakeMiddleCode( temporary ); 297 ChangeOpcode( temporary ); 298 299 cp = backCp; 300 300 } 301 301 void FinallyCommand()
Note:
See TracChangeset
for help on using the changeset viewer.