From bbffbd19836b163b679f950a4977cb9b451c14ea Mon Sep 17 00:00:00 2001 From: Nicholas Bastin Date: Tue, 22 Jun 2004 04:18:47 +0000 Subject: [PATCH] One forgotten C profiling #ifdef --- Python/ceval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index d5493cc0c64..6bc35d07865 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -3488,9 +3488,10 @@ call_function(PyObject ***pp_stack, int oparg PyObject *func = *pfunc; PyObject *x, *w; +#ifdef WITH_C_PROF int are_tracing = 0; - PyThreadState *tstate = PyThreadState_GET(); +#endif /* Always dispatch PyCFunction first, because these are presumed to be the most frequent callable object.