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

Function leanpy_unbox

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

Source from the content-addressed store, hash-verified

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); }
197LEAN_EXPORT lean_object * leanpy_box_float(double v) { return lean_box_float(v); }

Callers

nothing calls this directly

Calls 1

lean_unboxFunction · 0.85

Tested by

no test coverage detected