Exemplo n.º 1
0
        private string GenerateFunctHeader(int functIndex)
        {
            var result = "";

            var fn = session.GetFunct(functIndex);

            result += MangleName(session.GetFunctName(functIndex)) + "(";

            if (fn.parameterNum > 0)
            {
                result += "\n";
            }

            for (int i = 0; i < fn.parameterNum; i++)
            {
                result += "\t" +
                          ConvertFieldDecl(fn.registerTypes[i + 1], "var" + (i + 1));

                if (i < fn.parameterNum - 1)
                {
                    result += ",\n";
                }
            }

            result += ")";
            result  = ConvertFieldDecl(fn.GetReturnType(), result);

            return(result);
        }