Print build time only in debug mode

This commit is contained in:
Michel Zou
2019-01-11 20:52:38 +01:00
parent ea515048e9
commit 46e2d280a8

View File

@@ -10738,7 +10738,9 @@ initpybullet(void)
SpamError = PyErr_NewException("pybullet.error", NULL, NULL); SpamError = PyErr_NewException("pybullet.error", NULL, NULL);
Py_INCREF(SpamError); Py_INCREF(SpamError);
PyModule_AddObject(m, "error", SpamError); PyModule_AddObject(m, "error", SpamError);
#ifndef NDEBUG
printf("pybullet build time: %s %s\n", __DATE__, __TIME__); printf("pybullet build time: %s %s\n", __DATE__, __TIME__);
#endif
Py_AtExit(b3pybulletExitFunc); Py_AtExit(b3pybulletExitFunc);