1 #ifndef NO_PYTHON
2 #include "_pymod.h"
3 #endif
4 #include "_version.h"
5 
6 
7 #ifndef NO_PYTHON
8 static
9 #endif
pf_get_version(void)10 const char *pf_get_version(void)
11 {
12     return INTERNAL_PILLOWFIGHT_VERSION;
13 }
14 
15 
16 #ifndef NO_PYTHON
pyget_version(PyObject * self,PyObject * args)17 PyObject *pyget_version(PyObject *self, PyObject* args)
18 {
19     return PyUnicode_FromString(pf_get_version());
20 }
21 #endif // !NO_PYTHON
22