mojoshader_assembler.c
changeset 549 13714d3b3fa2
parent 548 b37cdacb50d5
child 550 2f977a75d2b5
equal deleted inserted replaced
548:b37cdacb50d5 549:13714d3b3fa2
  1777 } // build_errors
  1777 } // build_errors
  1778 
  1778 
  1779 
  1779 
  1780 static const MOJOSHADER_parseData *build_failed_assembly(Context *ctx)
  1780 static const MOJOSHADER_parseData *build_failed_assembly(Context *ctx)
  1781 {
  1781 {
       
  1782     assert(isfail(ctx));
       
  1783 
       
  1784     if (ctx->out_of_memory)
       
  1785         return &out_of_mem_data;
       
  1786         
  1782     MOJOSHADER_parseData *retval = NULL;
  1787     MOJOSHADER_parseData *retval = NULL;
  1783     if (!isfail(ctx))
       
  1784         return NULL;
       
  1785 
       
  1786     retval = (MOJOSHADER_parseData*) Malloc(ctx, sizeof(MOJOSHADER_parseData));
  1788     retval = (MOJOSHADER_parseData*) Malloc(ctx, sizeof(MOJOSHADER_parseData));
  1787     if (retval == NULL)
  1789     if (retval == NULL)
  1788         return &out_of_mem_data;
  1790         return &out_of_mem_data;
  1789 
  1791 
  1790     memset(retval, '\0', sizeof (MOJOSHADER_parseData));
  1792     memset(retval, '\0', sizeof (MOJOSHADER_parseData));