Skip to content

Commit 486708b

Browse files
afrantzisjrfonseca
authored andcommitted
Produce dispatchers for all functions, even in retrace mode.
1 parent 5c9af5b commit 486708b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

dispatch.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,11 @@ def dispatch_api(self, api):
6161
# functions
6262
print '#ifdef RETRACE'
6363
for function in api.functions:
64-
if self.is_public_function(function):
65-
print '#define __%s %s' % (function.name, function.name)
66-
else:
67-
print '#define %s __%s' % (function.name, function.name)
64+
print '#define %s __%s' % (function.name, function.name)
6865
print '#endif /* RETRACE */'
6966
print
7067

7168
def dispatch_function(self, function):
72-
if self.is_public_function(function):
73-
print '#ifndef RETRACE'
74-
print
7569
ptype = function_pointer_type(function)
7670
pvalue = function_pointer_value(function)
7771
print 'typedef ' + function.prototype('* %s' % ptype) + ';'
@@ -87,9 +81,6 @@ def dispatch_function(self, function):
8781
print ' %s%s(%s);' % (ret, pvalue, ', '.join([str(arg.name) for arg in function.args]))
8882
print '}'
8983
print
90-
if self.is_public_function(function):
91-
print '#endif /* !RETRACE */'
92-
print
9384

9485
def is_public_function(self, function):
9586
return True

0 commit comments

Comments
 (0)