Complete working GC mode.

This commit is contained in:
gmp
2019-06-19 14:07:33 -04:00
parent c8209dd260
commit 4aa1211d73
5 changed files with 50 additions and 45 deletions
+1 -3
View File
@@ -314,9 +314,7 @@ type %s interface {
type %s struct { %s }
func (o *%s) Ptr() unsafe.Pointer { if o == nil { return nil }; return o.ptr }
func (o *Id) %s() *%s {
ret := &%s{}
ret.ptr = o.ptr
return ret
return (*%s)(unsafe.Pointer(o))
}
`, gt, super, gt, gt, gt, gt)
}
+1 -1
View File
@@ -9,7 +9,7 @@ var (
)
func dbg(f string, xs ...interface{}) {
if Debug {
if Debug && false {
fmt.Printf(f, xs...)
}
}