2018-12-13 22:09:42 +00:00
|
|
|
/*
|
|
|
|
Unless explicitly stated otherwise all files in this repository are licensed
|
2021-08-05 10:47:52 +00:00
|
|
|
under the MIT License.
|
2018-12-13 22:09:42 +00:00
|
|
|
This product includes software developed at Datadog (https://www.datadoghq.com/).
|
|
|
|
Copyright 2018 Datadog, Inc.
|
|
|
|
*/
|
|
|
|
|
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)
|
|
|
|
}
|