Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // update I2 to the current memory size. update global offset.
- Type id_type =$1.type;
- if( id_type == INT8)
- {
- offset=offset+1;
- }
- else if( id_type == INT16 )
- {
- if((globalCurrentScopeOffset+2)%2 != 0 )
- {
- offset = 2 - globalCurrentScopeOffset%2 + 2;
- }
- else offset=offset+2;
- }
- else if( id_type == INT32 )
- {
- if((globalCurrentScopeOffset+4)%4 != 0 )
- {
- offset = 4 - globalCurrentScopeOffset%4 + 4;
- }
- else offset=offset+4;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement