MCPcopy Create free account
hub / github.com/aguinet/dragonffi / case_basic

Method case_basic

bindings/python/cobj.cpp:36–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 // TODO: assert alignment is correct!
35 template <class T>
36 static void case_basic(BasicType const* Ty, void* Ptr, py::handle Obj)
37 {
38 T* TPtr = reinterpret_cast<T*>(Ptr);
39 *TPtr = Obj.cast<T>();
40 }
41
42 static void case_pointer(PointerType const* Ty, void* Ptr, py::handle Obj)
43 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected