cpy3/helper.go

17 lines
286 B
Go
Raw Normal View History

2018-12-06 20:34:27 +00:00
package python3
//go:generate go run script/variadic.go
//#include "Python.h"
import "C"
//togo converts a *C.PyObject to a *PyObject
func togo(cobject *C.PyObject) *PyObject {
return (*PyObject)(cobject)
}
func toc(object *PyObject) *C.PyObject {
return (*C.PyObject)(object)
}