type.dump(name)
print ' g_pLog->EndParam();'
print ' %sm_pInstance->%s(%s);' % (result, method.name, ', '.join([str(name) for type, name in method.args]))
- print ' g_pLog->EndCall();'
for type, name in method.args:
if type.isoutput():
+ print ' g_pLog->BeginParam("%s", "%s");' % (name, type)
+ type.dump(name)
+ print ' g_pLog->EndParam();'
type.wrap_instance(name)
if method.type is not Void:
+ print ' g_pLog->BeginReturn("%s");' % method.type
+ type.dump("result")
+ print ' g_pLog->EndReturn();'
method.type.wrap_instance('result')
+ print ' g_pLog->EndCall();'
if method.name == 'QueryInterface':
print ' if(*ppvObj == m_pInstance)'
print ' *ppvObj = this;'
<xsl:value-of select="@name"/>
</span>
<xsl:text>(</xsl:text>
- <xsl:apply-templates/>
+ <xsl:apply-templates select="param"/>
<xsl:text>)</xsl:text>
+ <xsl:apply-templates select="return"/>
</li>
</xsl:template>
</xsl:if>
</xsl:template>
+ <xsl:template match="return">
+ <xsl:text> = </xsl:text>
+ <span class="lit">
+ <xsl:value-of select="."/>
+ </span>
+ </xsl:template>
+
</xsl:transform>