From 894bc33e4fd8aa9bc798ee1a968a6a06da5d5d48 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 7 Oct 2009 05:31:03 -0400 Subject: Basic plumbing for a --branch option. --- coverage/tracer.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'coverage/tracer.c') diff --git a/coverage/tracer.c b/coverage/tracer.c index b238922..c318e9e 100644 --- a/coverage/tracer.c +++ b/coverage/tracer.c @@ -41,6 +41,7 @@ typedef struct { PyObject * should_trace; PyObject * data; PyObject * should_trace_cache; + PyObject * branch; int started; /* The index of the last-used entry in tracenames. */ int depth; @@ -301,6 +302,9 @@ Tracer_members[] = { { "should_trace_cache", T_OBJECT, offsetof(Tracer, should_trace_cache), 0, PyDoc_STR("Dictionary caching should_trace results.") }, + { "branch", T_OBJECT, offsetof(Tracer, branch), 0, + PyDoc_STR("Should we trace branches?") }, + { NULL } }; -- cgit v1.2.1