parent
57250ad281
commit
1d7fc5fcda
1 changed files with 1 additions and 1 deletions
|
|
@ -791,10 +791,10 @@ proc genIf(p: PProc, n: PNode, r: var TCompRes) =
|
||||||
proc generateHeader(p: PProc, typ: PType): Rope =
|
proc generateHeader(p: PProc, typ: PType): Rope =
|
||||||
result = nil
|
result = nil
|
||||||
for i in countup(1, sonsLen(typ.n) - 1):
|
for i in countup(1, sonsLen(typ.n) - 1):
|
||||||
if result != nil: add(result, ", ")
|
|
||||||
assert(typ.n.sons[i].kind == nkSym)
|
assert(typ.n.sons[i].kind == nkSym)
|
||||||
var param = typ.n.sons[i].sym
|
var param = typ.n.sons[i].sym
|
||||||
if isCompileTimeOnly(param.typ): continue
|
if isCompileTimeOnly(param.typ): continue
|
||||||
|
if result != nil: add(result, ", ")
|
||||||
var name = mangleName(param)
|
var name = mangleName(param)
|
||||||
add(result, name)
|
add(result, name)
|
||||||
if mapType(param.typ) == etyBaseIndex:
|
if mapType(param.typ) == etyBaseIndex:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue