Beispiel #1
0
func GetFrame() (*Frame, error) {
	ret := C.PyEval_GetFrame()
	if ret == nil {
		return nil, exception()
	}
	return (*Frame)(unsafe.Pointer(ret)), nil
}
Beispiel #2
0
// PyFrameObject* PyEval_GetFrame()
// Return value: Borrowed reference.
// Return the current thread state’s frame, which is NULL if no frame is currently executing.
func PyEval_GetFrame() *PyFrameObject {
	frame := (*C.PyFrameObject)(C.PyEval_GetFrame())
	return &PyFrameObject{ptr: frame}
}