MCPcopy Create free account
hub / github.com/goplus/py / Main

Function Main

python.go:59–68  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

57}
58
59func Main(args []string) int {
60 argv := make([]*C.char, len(args))
61
62 for i, arg := range args {
63 argv[i] = C.CString(arg)
64 defer C.free(unsafe.Pointer(argv[i]))
65 }
66
67 return int(C.Py_Main(C.int(len(argv)), &argv[0]))
68}
69
70// EnterRecusiveCall marks a point where a recursive Go-level call is about to
71// be performed. It returns true if the recursive call is permitted, otherwise

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…