mojoshader_preprocessor.c
changeset 945 f00ea3986db8
parent 944 9f9fa9650772
child 949 356f04114580
equal deleted inserted replaced
944:9f9fa9650772 945:f00ea3986db8
  2317         f(output, d);
  2317         f(output, d);
  2318         return &out_of_mem_data_preprocessor;
  2318         return &out_of_mem_data_preprocessor;
  2319     } // if
  2319     } // if
  2320 
  2320 
  2321     memset(retval, '\0', sizeof (*retval));
  2321     memset(retval, '\0', sizeof (*retval));
  2322     if (errors->count > 0)
  2322     const int errcount = errorlist_count(errors);
  2323     {
  2323     if (errcount > 0)
  2324         retval->error_count = errors->count;
  2324     {
       
  2325         retval->error_count = errcount;
  2325         retval->errors = errorlist_flatten(errors);
  2326         retval->errors = errorlist_flatten(errors);
  2326         if (retval->errors == NULL)
  2327         if (retval->errors == NULL)
  2327         {
  2328         {
  2328             errorlist_destroy(errors);
  2329             errorlist_destroy(errors);
  2329             f(retval, d);
  2330             f(retval, d);