Upstream change
This commit is contained in:
parent
997b949611
commit
937e155a02
5
moo/moopython/codegen/codegen.py
Executable file → Normal file
5
moo/moopython/codegen/codegen.py
Executable file → Normal file
@ -1458,6 +1458,11 @@ typedef intobjargproc ssizeobjargproc;
|
|||||||
'void\n' + self.prefix +
|
'void\n' + self.prefix +
|
||||||
'_add_constants(PyObject *module, const gchar *strip_prefix)\n{\n')
|
'_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():
|
for enum in self.get_enums():
|
||||||
if enum.typecode is None:
|
if enum.typecode is None:
|
||||||
for nick, value in enum.values:
|
for nick, value in enum.values:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user