Skip to content

Commit

Permalink
[DBG] show debug info in PyInit_apriltag
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Sep 15, 2024
1 parent 5e69ee2 commit 0be2891
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apriltag_pywrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,12 +371,19 @@ static struct PyModuleDef module_def =

PyMODINIT_FUNC PyInit_apriltag(void)
{
if (PyType_Ready(&apriltagType) < 0)
if (PyType_Ready(&apriltagType) < 0) {
printf("PyType_Ready error!\n"); fflush(stdout);
return NULL;
}
else {
printf("OK!\n"); fflush(stdout);
}

PyObject* module =
PyModule_Create(&module_def);

// printf("NULL: %d\n", *(int*)NULL);

Py_INCREF(&apriltagType);
PyModule_AddObject(module, "apriltag", (PyObject *)&apriltagType);

Expand Down

0 comments on commit 0be2891

Please sign in to comment.