From d2c4e32985405e6cd733a0bb4b2a567c0de85091 Mon Sep 17 00:00:00 2001 From: Stefan Salewski Date: Mon, 18 Sep 2017 20:30:54 +0200 Subject: [PATCH] default nil for objects only for proxy procs necessary --- tests/gen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gen.nim b/tests/gen.nim index 778b60d..9c9be25 100644 --- a/tests/gen.nim +++ b/tests/gen.nim @@ -429,7 +429,7 @@ proc genP(info: GICallableInfo; genProxy = false; binfo: GIBaseInfo = nil): (str 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: #str.add(" | ptr " & str & " = nil") var h = str