Commit 7491d9e0 authored by Stefan Behnel's avatar Stefan Behnel

better error message

parent 8688b1e0
......@@ -440,7 +440,7 @@ class Scope:
if api:
entry.api = 1
if not defining and not in_pxd and visibility != 'extern':
error(pos, "Non-extern C function declared but not defined")
error(pos, "Non-extern C function '%s' declared but not defined" % name)
return entry
def add_cfunction(self, name, type, pos, cname, visibility):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment