lmActionTable arrays so we can't assert emptyness in the constructor. Lift out
the assertion and copy the array in the constructor.
git-svn-id: http://svn.complang.org/ragel/trunk@453
052ea7fc-9027-0410-9066-
f65837a77df0
highKey(other.highKey),
fromState(0), toState(0),
actionTable(other.actionTable),
- priorTable(other.priorTable)
- {
- assert( lmActionTable.length() == 0 && other.lmActionTable.length() == 0 );
- }
+ priorTable(other.priorTable),
+ lmActionTable(other.lmActionTable) {}
Key lowKey, highKey;
StateAp *fromState;
/* Dupicate and store the orginal target in the transition. This will
* be corrected once all the states have been created. */
TransAp *newTrans = new TransAp(*trans);
+ assert( trans->lmActionTable.length() == 0 );
newTrans->toState = trans->toState;
outList.append( newTrans );
}