Debian Codegraph @

pypy/module/_hpy_universal/src/tctx.c

raw symbols SCIP
1 #include "trace_internal.h"
2 #include "tctx.h"
3
4 // Cache the trace context pointer so it can be retrieved without re-initialising.
5 static HPyContext *g_pypy_trace_ctx = NULL;
6
7 // the default symbol visibility is hidden: the easiest way to export
8 // these two functions is to write a small wrapper.
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 }