diff options
Diffstat (limited to 'Include/cpython/optimizer.h')
-rw-r--r-- | Include/cpython/optimizer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/cpython/optimizer.h b/Include/cpython/optimizer.h index eb257d7..b2d173f 100644 --- a/Include/cpython/optimizer.h +++ b/Include/cpython/optimizer.h @@ -21,7 +21,8 @@ typedef struct _PyExecutorObject { typedef struct _PyOptimizerObject _PyOptimizerObject; -typedef _PyExecutorObject *(*optimize_func)(_PyOptimizerObject* self, PyCodeObject *code, _Py_CODEUNIT *instr); +/* Should return > 0 if a new executor is created. O if no executor is produced and < 0 if an error occurred. */ +typedef int (*optimize_func)(_PyOptimizerObject* self, PyCodeObject *code, _Py_CODEUNIT *instr, _PyExecutorObject **); typedef struct _PyOptimizerObject { PyObject_HEAD |