void RenderStack::CleanUpBeforeDestruct(RenderRegion *pRegion) { ERROR3IF(pRegion == NULL, "Illegal NULL param"); // Just repeatedly restore until we've popped everything. // That way if someone changes Restore, they won't break this function! while (ContextLevel > 0) RestoreContext(pRegion); }
void rt_sys_start (void) { /* Start system */ /* Intitialize and start system clock timer */ os_tick_irqn = os_tick_init (); if (os_tick_irqn >= 0) { OS_X_INIT(os_tick_irqn); } extern void RestoreContext(); RestoreContext(); // Start the first task }