Changeset 282 in dev for trunk/abdev/BasicCompiler_Common/include/NativeCode.h
- Timestamp:
- Aug 14, 2007, 11:57:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/NativeCode.h
r280 r282 21 21 AddressOf, // ユーザ定義関数位置スケジュール 22 22 DllProc, // DLL関数位置スケジュール 23 Vtbl, // vtblスケジュール 23 24 }; 24 25 … … 31 32 const ::UserProc *pUserProc; 32 33 const ::DllProc *pDllProc; 34 const ::CClass *pClass; 33 35 }; 34 36 … … 52 54 ar & boost::serialization::make_nvp("pDllProc", const_cast<::DllProc *&>(pDllProc)); 53 55 break; 56 case Vtbl: 57 ar & boost::serialization::make_nvp("pClass", const_cast<::CClass *&>(pClass)); 58 break; 54 59 default: 55 60 ar & BOOST_SERIALIZATION_NVP( lpValue ); … … 80 85 { 81 86 } 87 Schedule( const ::CClass *pClass, long offset ) 88 : type( Schedule::Vtbl ) 89 , offset( offset ) 90 , pClass( pClass ) 91 { 92 } 82 93 ~Schedule() 83 94 { … … 111 122 } 112 123 return *pUserProc; 124 } 125 const ::CClass &GetClass() const 126 { 127 if( type != Schedule::Vtbl ) 128 { 129 SetError(); 130 } 131 return *pClass; 113 132 } 114 133 … … 360 379 void PutUserProcSchedule( const UserProc *pUserProc, bool isCall ); 361 380 void PutDllProcSchedule( const DllProc *pDllProc ); 381 void PutVtblSchedule( const CClass *pClass ); 362 382 void Put( short s ) 363 383 {
Note:
See TracChangeset
for help on using the changeset viewer.