default nil for objects only for proxy procs necessary

This commit is contained in:
Stefan Salewski 2017-09-18 20:30:54 +02:00
commit d2c4e32985

View file

@ -429,7 +429,7 @@ proc genP(info: GICallableInfo; genProxy = false; binfo: GIBaseInfo = nil): (str
str.add(" = nil") str.add(" = nil")
# ------------------ # ------------------
if isFunctionInfo(info) and (gFunctionInfoGetFlags(info).int and GIFunctionInfoFlags.WRAPS_VFUNC.ord) == 0: if (genProxy or sym == "pango_extents_to_pixels") and isFunctionInfo(info) and (gFunctionInfoGetFlags(info).int and GIFunctionInfoFlags.WRAPS_VFUNC.ord) == 0:
if userAlloc and mayBeNil: if userAlloc and mayBeNil:
#str.add(" | ptr " & str & " = nil") #str.add(" | ptr " & str & " = nil")
var h = str var h = str