Exemplo n.º 1
0
// Return a pointer to the error message in *s.  The return value
// points to memory that is only usable until the next mutation to *s.
// Always returns an empty string if TF_GetCode(s) is TF_OK.
func _TF_Message(s *_TF_Status) string {
	cmsg := C.TF_Message(((*C.TF_Status)(s)))
	return C.GoString(cmsg)
}
Exemplo n.º 2
0
func (s *status) String() string {
	return C.GoString(C.TF_Message(s.c))
}