================ idProgram::AllocStatement ================ */
| 1631 | ================ |
| 1632 | */ |
| 1633 | statement_t *idProgram::AllocStatement( void ) { |
| 1634 | if ( statements.Num() >= statements.Max() ) { |
| 1635 | throw idCompileError( va( "Exceeded maximum allowed number of statements (%d)", statements.Max() ) ); |
| 1636 | } |
| 1637 | statement_t* ret = statements.Alloc(); |
| 1638 | ret->flags = 0; // DG: initialize the added flags (that are rarely set/used otherwise) to 0 |
| 1639 | return ret; |
| 1640 | } |
| 1641 | |
| 1642 | /* |
| 1643 | ============== |
no test coverage detected