fixed default nil for object parameter
This commit is contained in:
parent
61bc1f5553
commit
a060d7b206
1 changed files with 4 additions and 1 deletions
|
|
@ -431,7 +431,10 @@ proc genP(info: GICallableInfo; genProxy = false; binfo: GIBaseInfo = nil): (str
|
|||
# ------------------
|
||||
if isFunctionInfo(info) and (gFunctionInfoGetFlags(info).int and GIFunctionInfoFlags.WRAPS_VFUNC.ord) == 0:
|
||||
if userAlloc and mayBeNil:
|
||||
str.add(" | ptr " & str & " = nil")
|
||||
#str.add(" | ptr " & str & " = nil")
|
||||
var h = str
|
||||
if h.startsWith("var "): h = h[4 .. ^1]
|
||||
str.add(" = cast[ptr " & h & "](nil)[]")
|
||||
# ------------------
|
||||
|
||||
if (sym.startsWith("gdk_events_get_") or sym.startsWith("gdk_event_get_")) and str == "Event":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue