Changeset 549 in dev for trunk/ab5.0/abdev/BasicCompiler_Common
- Timestamp:
- May 4, 2008, 10:42:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/NativeCode.cpp
r537 r549 7 7 const ::DllProc &Schedule::GetDllProc() const 8 8 { 9 if( type != Schedule::DllProc ) 10 { 11 compiler.errorMessenger.OutputFatalError(); 12 } 9 _ASSERT( type == Schedule::DllProc ); 13 10 return *pDllProc; 14 11 } 15 12 const ::UserProc &Schedule::GetUserProc() const 16 13 { 17 if( !( type == Schedule::UserProc || type == Schedule::AddressOf || type == Schedule::CatchAddress ) ) 18 { 19 compiler.errorMessenger.OutputFatalError(); 20 } 14 _ASSERT( type == Schedule::UserProc || type == Schedule::AddressOf || type == Schedule::CatchAddress ); 21 15 return *pUserProc; 22 16 } 23 17 const ::CClass &Schedule::GetClass() const 24 18 { 25 if( !( type == Schedule::ComVtbl || type == Schedule::Vtbl || type == Schedule::TypeInfo ) ) 26 { 27 compiler.errorMessenger.OutputFatalError(); 28 } 19 _ASSERT( type == Schedule::ComVtbl || type == Schedule::Vtbl || type == Schedule::TypeInfo ); 29 20 return *pClass; 30 21 } … … 32 23 void Schedule::SpecifyAddressOf() 33 24 { 34 if( type != Schedule::UserProc ) 35 { 36 compiler.errorMessenger.OutputFatalError(); 37 } 25 _ASSERT( type == Schedule::UserProc ); 38 26 type = Schedule::AddressOf; 39 27 } 40 28 void Schedule::SpecifyCatchAddress() 41 29 { 42 if( type != Schedule::UserProc ) 43 { 44 compiler.errorMessenger.OutputFatalError(); 45 } 30 _ASSERT( type == Schedule::UserProc ); 46 31 type = Schedule::CatchAddress; 47 32 }
Note:
See TracChangeset
for help on using the changeset viewer.