From 22aa6882d343113a422e694ae1d8c4b3ade4e2c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 7 Jul 2008 17:33:30 +0900 Subject: [PATCH] Dump return values. --- base.py | 8 +++++++- d3dtrace.xsl | 10 +++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/base.py b/base.py index 22ffae5..abc0aaa 100644 --- a/base.py +++ b/base.py @@ -220,12 +220,18 @@ class Interface(Type): 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;' diff --git a/d3dtrace.xsl b/d3dtrace.xsl index 9528be7..cf95452 100644 --- a/d3dtrace.xsl +++ b/d3dtrace.xsl @@ -24,8 +24,9 @@ ( - + ) + @@ -46,4 +47,11 @@ + + = + + + + + -- 2.45.2