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

better error message

parent 8688b1e0
...@@ -440,7 +440,7 @@ class Scope: ...@@ -440,7 +440,7 @@ class Scope:
if api: if api:
entry.api = 1 entry.api = 1
if not defining and not in_pxd and visibility != 'extern': 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 return entry
def add_cfunction(self, name, type, pos, cname, visibility): 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