mojoshader_compiler.c
changeset 993 426ab31f27d1
parent 991 8999b4b9eaa6
child 995 7e7826e191f5
equal deleted inserted replaced
992:a951ce8bf2ec 993:426ab31f27d1
  2363                 this_match = 0;  // too many arguments supplied. No match.
  2363                 this_match = 0;  // too many arguments supplied. No match.
  2364         } // else
  2364         } // else
  2365 
  2365 
  2366         if (this_match)
  2366         if (this_match)
  2367         {
  2367         {
  2368             if (match++ == 0)
  2368             match++;
       
  2369             if (match == 1)
  2369                 best = item;
  2370                 best = item;
  2370             else
  2371             else
  2371             {
  2372             {
  2372                 if (match++ == 1)
  2373                 if (match == 2)
  2373                     failf(ctx, "Ambiguous function call to '%s'", sym);
  2374                     failf(ctx, "Ambiguous function call to '%s'", sym);
  2374                 // !!! FIXME: list each possible function in a fail() here.
  2375                 // !!! FIXME: list each possible function in a fail() here.
  2375             } // else
  2376             } // else
  2376         } // if
  2377         } // if
  2377     } // while
  2378     } // while