From: José Fonseca Date: Fri, 23 Nov 2012 15:33:40 +0000 (+0000) Subject: trace: Catch attempts to call unimplemented methods. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=14f9eea4dddb9fe0c19dc1a28cd1cc727d9463ba trace: Catch attempts to call unimplemented methods. --- diff --git a/wrappers/trace.py b/wrappers/trace.py index 506570d..f558abe 100644 --- a/wrappers/trace.py +++ b/wrappers/trace.py @@ -595,6 +595,11 @@ class Tracer: #print "private:" for type, name, value in self.enumWrapperInterfaceVariables(interface): print ' %s %s;' % (type, name) + for i in range(64): + print r' virtual void _dummy%i(void) const {' % i + print r' os::log("error: %s: unexpected virtual method\n");' % interface.name + print r' os::abort();' + print r' }' print "};" print