Skip to content

Commit aac8967

Browse files
author
aninggo
committed
u
1 parent cf953bc commit aac8967

File tree

9 files changed

+7929
-166
lines changed

9 files changed

+7929
-166
lines changed

assembly.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,3 +286,11 @@ func (c *Assembly) Children() []*Assembly {
286286
}
287287
return result
288288
}
289+
290+
func (c *Assembly) HasError() bool {
291+
return bool(C.assembly_has_error(c.inner.val))
292+
}
293+
294+
func (c *Assembly) Error() string {
295+
return C.GoString(C.assembly_error(c.inner.val))
296+
}

sketch.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,3 +705,11 @@ func (c *Sketch) Sort(fn func(*SketchObject, *SketchObject) bool) *Sketch {
705705
C.sketch_sort(c.inner.val, unsafe.Pointer(&fn), (*[0]byte)(C.sketchSortFunc))
706706
return c
707707
}
708+
709+
func (c *Sketch) HasError() bool {
710+
return bool(C.sketch_has_error(c.inner.val))
711+
}
712+
713+
func (c *Sketch) Error() string {
714+
return C.GoString(C.sketch_error(c.inner.val))
715+
}

0 commit comments

Comments
 (0)