mojoshader_compiler.c
changeset 968 fc6cebb74350
parent 967 51ce9d8a7533
child 969 ab7676343b60
equal deleted inserted replaced
967:51ce9d8a7533 968:fc6cebb74350
  2417             return NULL;
  2417             return NULL;
  2418 
  2418 
  2419         case MOJOSHADER_AST_STATEMENT_RETURN:
  2419         case MOJOSHADER_AST_STATEMENT_RETURN:
  2420             type_check_ast(ctx, ast->returnstmt.expr);
  2420             type_check_ast(ctx, ast->returnstmt.expr);
  2421             type_check_ast(ctx, ast->returnstmt.next);
  2421             type_check_ast(ctx, ast->returnstmt.next);
       
  2422             return NULL;
  2422 
  2423 
  2423         case MOJOSHADER_AST_COMPUNIT_FUNCTION:
  2424         case MOJOSHADER_AST_COMPUNIT_FUNCTION:
  2424             // !!! FIXME: this is totally broken for function overloading.
  2425             // !!! FIXME: this is totally broken for function overloading.
  2425 //fsdfsdf
  2426 //fsdfsdf
  2426             datatype = get_usertype(ctx, ast->funcunit.declaration->identifier);
  2427             datatype = get_usertype(ctx, ast->funcunit.declaration->identifier);