##// END OF EJS Templates
parsers: add version to help detect breaking binary changes
Jun Wu -
r32360:af3ef002 default
parent child Browse files
Show More
@@ -2854,8 +2854,12 b' static PyMethodDef methods[] = {'
2854 2854 void dirs_module_init(PyObject *mod);
2855 2855 void manifest_module_init(PyObject *mod);
2856 2856
2857 static const int version = 1;
2858
2857 2859 static void module_init(PyObject *mod)
2858 2860 {
2861 PyModule_AddIntConstant(mod, "version", version);
2862
2859 2863 /* This module constant has two purposes. First, it lets us unit test
2860 2864 * the ImportError raised without hard-coding any error text. This
2861 2865 * means we can change the text in the future without breaking tests,
General Comments 0
You need to be logged in to leave comments. Login now