mojoshader_compiler.c
changeset 915 55b583afec46
parent 910 3ee487d85ecb
child 916 3738cd265707
equal deleted inserted replaced
913:483458775ec5 915:55b583afec46
  2007             switch (((FunctionSignature *) ast)->storage_class)
  2007             switch (((FunctionSignature *) ast)->storage_class)
  2008             {
  2008             {
  2009                 case FNSTORECLS_NONE: break;
  2009                 case FNSTORECLS_NONE: break;
  2010                 case FNSTORECLS_INLINE: printf("inline "); break;
  2010                 case FNSTORECLS_INLINE: printf("inline "); break;
  2011             } // switch
  2011             } // switch
  2012             printf("%s %s(", ((FunctionSignature *) ast)->datatype,
  2012             printf("%s %s(",
       
  2013                     ((FunctionSignature *) ast)->datatype ?
       
  2014                         ((FunctionSignature *) ast)->datatype : "void",
  2013                     ((FunctionSignature *) ast)->identifier);
  2015                     ((FunctionSignature *) ast)->identifier);
  2014             print_ast(((FunctionSignature *) ast)->args);
  2016             print_ast(((FunctionSignature *) ast)->args);
  2015             printf(")");
  2017             printf(")");
  2016             if (((FunctionSignature *) ast)->semantic)
  2018             if (((FunctionSignature *) ast)->semantic)
  2017                 printf(" : %s", ((FunctionSignature *) ast)->semantic);
  2019                 printf(" : %s", ((FunctionSignature *) ast)->semantic);