Unify error logging between python and C

This commit is contained in:
Kovid Goyal
2018-03-04 11:55:47 +05:30
parent 1e3d3df9b8
commit c7506496da
12 changed files with 83 additions and 31 deletions

View File

@@ -174,6 +174,7 @@ extern bool init_graphics(PyObject *module);
extern bool init_shaders(PyObject *module);
extern bool init_mouse(PyObject *module);
extern bool init_kittens(PyObject *module);
extern bool init_logging(PyObject *module);
#ifdef __APPLE__
extern int init_CoreText(PyObject *);
extern bool init_cocoa(PyObject *module);
@@ -193,6 +194,7 @@ PyInit_fast_data_types(void) {
#endif
if (m != NULL) {
if (!init_logging(m)) return NULL;
if (!init_LineBuf(m)) return NULL;
if (!init_HistoryBuf(m)) return NULL;
if (!init_Line(m)) return NULL;