removed nasty debug output

This commit is contained in:
Stefan Salewski 2017-07-16 15:57:24 +02:00
commit ad0859a2b7

View file

@ -753,14 +753,14 @@ proc writeObj(info: GIObjectInfo) =
output.writeLine("proc toggleNotify*(data: pointer; obj: ptr Object00; isLastRef: gboolean) {.cdecl.} =") output.writeLine("proc toggleNotify*(data: pointer; obj: ptr Object00; isLastRef: gboolean) {.cdecl.} =")
output.writeLine(" if isLastRef.int == 0:") output.writeLine(" if isLastRef.int == 0:")
output.writeLine(" GC_ref(cast[RootRef](data))") output.writeLine(" GC_ref(cast[RootRef](data))")
output.writeLine(" echo \"GC_ref(cast[RootRef](data)\"") ###output.writeLine(" echo \"GC_ref(cast[RootRef](data)\"")
output.writeLine(" else:") output.writeLine(" else:")
output.writeLine(" GC_unref(cast[RootRef](data))") output.writeLine(" GC_unref(cast[RootRef](data))")
output.writeLine(" echo \"GC_unref(cast[RootRef](data)\"") ###output.writeLine(" echo \"GC_unref(cast[RootRef](data)\"")
output.writeLine(" echo \"toggleNotify\"") ###output.writeLine(" echo \"toggleNotify\"")
output.writeLine(" echo obj.ref_count") ###output.writeLine(" echo obj.ref_count")
methodBuffer.writeLine("\nproc finalizeGObject*[T](o: T) =") methodBuffer.writeLine("\nproc finalizeGObject*[T](o: T) =")
methodBuffer.writeLine(" echo(\"finalizeGObject\")") ###methodBuffer.writeLine(" echo(\"finalizeGObject\")")
methodBuffer.writeLine(" g_object_remove_toggle_ref(o.impl, toggleNotify, addr(o[]))") methodBuffer.writeLine(" g_object_remove_toggle_ref(o.impl, toggleNotify, addr(o[]))")
let numsig = info.gObjectInfoGetNSignals let numsig = info.gObjectInfoGetNSignals