Upstream change

This commit is contained in:
Yevgen Muntyan 2007-07-10 22:16:22 -05:00
parent 997b949611
commit 937e155a02

5
moo/moopython/codegen/codegen.py Executable file → Normal file
View File

@ -1458,6 +1458,11 @@ typedef intobjargproc ssizeobjargproc;
'void\n' + self.prefix +
'_add_constants(PyObject *module, const gchar *strip_prefix)\n{\n')
self.fp.write(
'#ifdef VERSION\n'
' PyModule_AddStringConstant(module, "__version__", VERSION);\n'
'#endif\n')
for enum in self.get_enums():
if enum.typecode is None:
for nick, value in enum.values: