added support for possible nil value of user-alloc objects
This commit is contained in:
parent
a81d2c2db5
commit
61bc1f5553
1 changed files with 5 additions and 0 deletions
|
|
@ -428,6 +428,11 @@ proc genP(info: GICallableInfo; genProxy = false; binfo: GIBaseInfo = nil): (str
|
|||
if genProxy and isProxyCandidate(t) and mayBeNil:
|
||||
str.add(" = nil")
|
||||
|
||||
# ------------------
|
||||
if isFunctionInfo(info) and (gFunctionInfoGetFlags(info).int and GIFunctionInfoFlags.WRAPS_VFUNC.ord) == 0:
|
||||
if userAlloc and mayBeNil:
|
||||
str.add(" | ptr " & str & " = nil")
|
||||
# ------------------
|
||||
|
||||
if (sym.startsWith("gdk_events_get_") or sym.startsWith("gdk_event_get_")) and str == "Event":
|
||||
str = "SomeEvent"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue