Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: mojo/public/go/bindings/interface.go

Issue 1000213003: go/bindings/cgo: allocate C structs on C side (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/public/platform/native_cgo/system_cgo.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/go/bindings/interface.go
diff --git a/mojo/public/go/bindings/interface.go b/mojo/public/go/bindings/interface.go
index 9e449ad3f82f2a5034738d0074b2c6b986025e7b..e95324b5de4aabd82f08fc81a1586698f2284af8 100644
--- a/mojo/public/go/bindings/interface.go
+++ b/mojo/public/go/bindings/interface.go
@@ -5,6 +5,7 @@
package bindings
import (
+ "fmt"
"mojo/public/go/system"
)
@@ -60,7 +61,7 @@ type InterfacePointer struct {
func CreateMessagePipeForMojoInterface() (InterfaceRequest, InterfacePointer) {
r, h0, h1 := system.GetCore().CreateMessagePipe(nil)
if r != system.MOJO_RESULT_OK {
- panic("can't create a message pipe")
+ panic(fmt.Sprintf("can't create a message pipe: %v", r))
}
return InterfaceRequest{MessagePipeHandleOwner{h0}}, InterfacePointer{MessagePipeHandleOwner{h1}}
}
« no previous file with comments | « no previous file | mojo/public/platform/native_cgo/system_cgo.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698