| 1623 | } |
| 1624 | |
| 1625 | int asCByteCode::AddInstruction() |
| 1626 | { |
| 1627 | void *ptr = engine->memoryMgr.AllocByteInstruction(); |
| 1628 | if( ptr == 0 ) |
| 1629 | { |
| 1630 | // Out of memory |
| 1631 | return 0; |
| 1632 | } |
| 1633 | |
| 1634 | asCByteInstruction *instr = new(ptr) asCByteInstruction(); |
| 1635 | if( first == 0 ) |
| 1636 | { |
| 1637 | first = last = instr; |
| 1638 | } |
| 1639 | else |
| 1640 | { |
| 1641 | last->AddAfter(instr); |
| 1642 | last = instr; |
| 1643 | } |
| 1644 | |
| 1645 | return 0; |
| 1646 | } |
| 1647 | |
| 1648 | int asCByteCode::AddInstructionFirst() |
| 1649 | { |
nothing calls this directly
no test coverage detected