Complete working GC mode.
This commit is contained in:
+1
-3
@@ -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
@@ -9,7 +9,7 @@ var (
|
||||
)
|
||||
|
||||
func dbg(f string, xs ...interface{}) {
|
||||
if Debug {
|
||||
if Debug && false {
|
||||
fmt.Printf(f, xs...)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user