Ignore:
Timestamp:
Aug 2, 2007, 4:17:27 AM (17 years ago)
Author:
dai_9181
Message:
 
Location:
trunk/abdev/BasicCompiler_Common/src
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abdev/BasicCompiler_Common/src/NativeCode.cpp

    r250 r257  
    1515    {
    1616        int test=0;
     17    }
     18}
     19
     20void NativeCode::Put( const NativeCode &nativeCode )
     21{
     22    long baseOffset = size;
     23
     24    Put( nativeCode.codeBuffer, nativeCode.size );
     25
     26    BOOST_FOREACH( const Schedule &schedule, nativeCode.schedules )
     27    {
     28        this->schedules.push_back(
     29            Schedule(
     30                schedule.GetType(),
     31                baseOffset + schedule.GetOffset()
     32            )
     33        );
    1734    }
    1835}
Note: See TracChangeset for help on using the changeset viewer.