X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=wrappers%2Ftrace.py;h=aab99d793c1ce433bf6ad19d97d7afd89bfbac15;hb=1242ab5cbdc409e2fc2d787edc28c6ac2a8439d1;hp=5f6f52b4d3f446803e41007582d9df5007eaa84a;hpb=614174444ce27a22f25e08a50cca3af5d3d07bae;p=apitrace diff --git a/wrappers/trace.py b/wrappers/trace.py index 5f6f52b..aab99d7 100644 --- a/wrappers/trace.py +++ b/wrappers/trace.py @@ -422,6 +422,14 @@ class Tracer: print function.prototype() + ' {' if function.type is not stdapi.Void: print ' %s _result;' % function.type + print ' if (!os::apitrace_enabled()) {' + Tracer.invokeFunction(self, function) + if function.type is not stdapi.Void: + print ' return _result;' + else: + print ' return;' + print ' }' + print self.traceFunctionImplBody(function) if function.type is not stdapi.Void: print ' return _result;'