| 2885 | } |
| 2886 | |
| 2887 | int asCByteCode::RemoveLastInstr() |
| 2888 | { |
| 2889 | if( last == 0 ) return -1; |
| 2890 | |
| 2891 | if( first == last ) |
| 2892 | { |
| 2893 | engine->memoryMgr.FreeByteInstruction(last); |
| 2894 | first = 0; |
| 2895 | last = 0; |
| 2896 | } |
| 2897 | else |
| 2898 | { |
| 2899 | asCByteInstruction *bc = last; |
| 2900 | last = bc->prev; |
| 2901 | |
| 2902 | bc->Remove(); |
| 2903 | engine->memoryMgr.FreeByteInstruction(bc); |
| 2904 | } |
| 2905 | |
| 2906 | return 0; |
| 2907 | } |
| 2908 | |
| 2909 | asDWORD asCByteCode::GetLastInstrValueDW() |
| 2910 | { |
no test coverage detected