Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / stabs / Method-Type-Descriptor.html
blob9fd1666e1028a744bb209bf9ee7e4c169cd7dba5
1 <html lang="en">
2 <head>
3 <title>STABS</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="STABS">
6 <meta name="generator" content="makeinfo 4.3">
7 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home">
8 </head>
9 <body>
10 <div class="node">
11 <p>
12 Node:<a name="Method%20Type%20Descriptor">Method Type Descriptor</a>,
13 Next:<a rel="next" accesskey="n" href="Member-Type-Descriptor.html#Member%20Type%20Descriptor">Member Type Descriptor</a>,
14 Previous:<a rel="previous" accesskey="p" href="Methods.html#Methods">Methods</a>,
15 Up:<a rel="up" accesskey="u" href="Cplusplus.html#Cplusplus">Cplusplus</a>
16 <hr><br>
17 </div>
19 <h3 class="section">The <code>#</code> Type Descriptor</h3>
21 <p>This is used to describe a class method. This is a function which takes
22 an extra argument as its first argument, for the <code>this</code> pointer.
24 <p>If the <code>#</code> is immediately followed by another <code>#</code>, the second
25 one will be followed by the return type and a semicolon. The class and
26 argument types are not specified, and must be determined by demangling
27 the name of the method if it is available.
29 <p>Otherwise, the single <code>#</code> is followed by the class type, a comma,
30 the return type, a comma, and zero or more parameter types separated by
31 commas. The list of arguments is terminated by a semicolon. In the
32 debugging output generated by gcc, a final argument type of <code>void</code>
33 indicates a method which does not take a variable number of arguments.
34 If the final argument type of <code>void</code> does not appear, the method
35 was declared with an ellipsis.
37 <p>Note that although such a type will normally be used to describe fields
38 in structures, unions, or classes, for at least some versions of the
39 compiler it can also be used in other contexts.
41 </body></html>