Changeset 465 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/include/NativeCode.h
- Timestamp:
- Mar 24, 2008, 8:05:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/include/NativeCode.h
r370 r465 119 119 return lpValue; 120 120 } 121 const ::DllProc &GetDllProc() const 122 { 123 if( type != Schedule::DllProc ) 124 { 125 SetError(); 126 } 127 return *pDllProc; 128 } 129 const ::UserProc &GetUserProc() const 130 { 131 if( !( type == Schedule::UserProc || type == Schedule::AddressOf || type == Schedule::CatchAddress ) ) 132 { 133 SetError(); 134 } 135 return *pUserProc; 136 } 137 const ::CClass &GetClass() const 138 { 139 if( !( type == Schedule::ComVtbl || type == Schedule::Vtbl || type == Schedule::TypeInfo ) ) 140 { 141 SetError(); 142 } 143 return *pClass; 144 } 145 146 void SpecifyAddressOf() 147 { 148 if( type != Schedule::UserProc ) 149 { 150 SetError(); 151 } 152 type = Schedule::AddressOf; 153 } 154 void SpecifyCatchAddress() 155 { 156 if( type != Schedule::UserProc ) 157 { 158 SetError(); 159 } 160 type = Schedule::CatchAddress; 161 } 121 const ::DllProc &GetDllProc() const; 122 const ::UserProc &GetUserProc() const; 123 const ::CClass &GetClass() const; 124 125 void SpecifyAddressOf(); 126 void SpecifyCatchAddress(); 162 127 }; 163 128 typedef std::vector<Schedule> Schedules;
Note:
See TracChangeset
for help on using the changeset viewer.