mojoshader_preprocessor.c
changeset 677 75e28bb57b2d
parent 676 29447167fc68
child 678 9fa2eb7d7871
equal deleted inserted replaced
676:29447167fc68 677:75e28bb57b2d
   586                               ctx->free, ctx->malloc_data);
   586                               ctx->free, ctx->malloc_data);
   587     } // if
   587     } // if
   588 
   588 
   589     // state->filename is a pointer to the filename cache; don't free it here!
   589     // state->filename is a pointer to the filename cache; don't free it here!
   590 
   590 
   591     while (state->conditional_stack)
   591     Conditional *cond = state->conditional_stack;
   592         put_conditional(ctx, state->conditional_stack);
   592     while (cond)
       
   593     {
       
   594         Conditional *next = cond->next;
       
   595         put_conditional(ctx, cond);
       
   596         cond = next;
       
   597     } // while
   593 
   598 
   594     ctx->include_stack = state->next;
   599     ctx->include_stack = state->next;
   595     put_include(ctx, state);
   600     put_include(ctx, state);
   596 } // pop_source
   601 } // pop_source
   597 
   602