Skip to content

Commit b980e64

Browse files
committed
Skip functions without a C-Name
1 parent e6b6e67 commit b980e64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autogen/generator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ def can_handle_function(self, function, cname="", **kwds):
9999
>>> G.can_handle_function("bnfinit", "bnfinit0", **{"class":"hard"})
100100
False
101101
"""
102+
if not cname:
103+
# No corresponding C function => must be specific to GP or GP2C
104+
return False
102105
if function in function_blacklist:
103106
# Blacklist specific troublesome functions
104107
return False

0 commit comments

Comments
 (0)