mojoshader_compiler.c
changeset 930 cedd05bc6290
parent 929 5d2d66bd35e7
child 931 4aa1f68d8292
equal deleted inserted replaced
929:5d2d66bd35e7 930:cedd05bc6290
  2913             } // if
  2913             } // if
  2914 
  2914 
  2915             // declarations can be done multiple times if they match.
  2915             // declarations can be done multiple times if they match.
  2916             else if (sig != unit->declaration->datatype)
  2916             else if (sig != unit->declaration->datatype)
  2917             {
  2917             {
       
  2918                 // !!! FIXME: function overloading is legal.
  2918                 fail(ctx, "function sigs don't match");
  2919                 fail(ctx, "function sigs don't match");
  2919             } // else
  2920             } // else
  2920 
  2921 
  2921             push_scope(ctx);  // so function params are in function scope.
  2922             push_scope(ctx);  // so function params are in function scope.
  2922             type_check_ast(ctx, unit->declaration);
  2923             type_check_ast(ctx, unit->declaration);