| 1 |
#include "trace_internal.h" |
| 2 |
#include "tctx.h" |
| 3 |
|
| 4 |
|
| 5 |
static HPyContext *g_pypy_trace_ctx = NULL; |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
HPyContext* pypy_hpy_trace_get_ctx(HPyContext *uctx) { |
| 10 |
g_pypy_trace_ctx = hpy_trace_get_ctx(uctx); |
| 11 |
return g_pypy_trace_ctx; |
| 12 |
} |
| 13 |
|
| 14 |
HPyContext* pypy_hpy_trace_get_stored_ctx(void) { |
| 15 |
return g_pypy_trace_ctx; |
| 16 |
} |
| 17 |
|
| 18 |
int pypy_hpy_trace_ctx_init(HPyContext *tctx, HPyContext *uctx) { |
| 19 |
return hpy_trace_ctx_init(tctx, uctx); |
| 20 |
} |
| 21 |
|
| 22 |
int pypy_hpy_trace_ctx_free(HPyContext *tctx) { |
| 23 |
return hpy_trace_ctx_free(tctx); |
| 24 |
} |
| 25 |
|
| 26 |
int pypy_hpy_trace_get_nfunc(void) { |
| 27 |
return hpy_trace_get_nfunc(); |
| 28 |
} |
| 29 |
|
| 30 |
const char * pypy_hpy_trace_get_func_name(int idx) { |
| 31 |
return hpy_trace_get_func_name(idx); |
| 32 |
} |
| 33 |
|
| 34 |
HPyModuleDef* pypy_HPyInit__trace() { |
| 35 |
return HPyInit__trace(); |
| 36 |
} |