"division with oppositely signed operands, C and Python semantics differ",
%(FILENAME)s,
%(LINENO)s,
- %(MODULENAME)s,
+ __Pyx_MODULE_NAME,
NULL);
}
""" % {
'FILENAME': Naming.filename_cname,
- 'MODULENAME': Naming.modulename_cname,
'LINENO': Naming.lineno_cname,
})
code.globalstate.use_utility_code(refcount_utility_code)
- code.putln('static const char *%s = "%s";' % (Naming.modulename_cname, self.full_module_name))
+ code.putln('#define __Pyx_MODULE_NAME "%s"' % self.full_module_name)
code.putln("")
code.putln("/* Implementation of %s */" % env.qualified_name)
self.generate_const_definitions(env, code)