Skip to content

Commit

Permalink
c api check callback func
Browse files Browse the repository at this point in the history
  • Loading branch information
lostsnow committed Jan 20, 2022
1 parent c2c7080 commit cdb3179
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dongtai_agent_python/assess_ext/patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ PyObject *install(PyObject *self, PyObject *arg) {
}

void patch_string_callback(char *prop_method_name, PyObject *source, PyObject *target, PyObject *hook_args, PyObject *hook_kwargs) {
if (!PyObject_HasAttrString(patch_module, prop_method_name)) {
return;
}

PyObject *result;
PyObject *prop_hook_args;
int free_hook_args = 0;
Expand Down

0 comments on commit cdb3179

Please sign in to comment.