MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / leanpy_box

Function leanpy_box

LeanPy/native/python_bridge.c:193–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191LEAN_EXPORT void leanpy_inc_ref_n(b_lean_obj_arg o, size_t n) { lean_inc_ref_n(o, n); }
192
193LEAN_EXPORT lean_object * leanpy_box(size_t v) { return lean_box(v); }
194LEAN_EXPORT size_t leanpy_unbox(b_lean_obj_arg o) { return lean_unbox(o); }
195LEAN_EXPORT lean_object * leanpy_box_uint64(uint64_t v) { return lean_box_uint64(v); }
196LEAN_EXPORT uint64_t leanpy_unbox_uint64(b_lean_obj_arg o) { return lean_unbox_uint64(o); }

Callers

nothing calls this directly

Calls 1

lean_boxFunction · 0.85

Tested by

no test coverage detected