unsafe_cast_from_c_ptr Subroutine

public subroutine unsafe_cast_from_c_ptr(obj, ptr)

Creates an object from a type(c_ptr), no type checks

use with care, use only for developing Python extensions created object 'obj' has to be cleaned up by calling obj%destroy

Arguments

Type IntentOptional AttributesName
class(object), intent(out) :: obj

The created Python object.

type(c_ptr), intent(in) :: ptr

C pointer to cast from