abi check: prefer nim constant to enable, document
This commit is contained in:
parent
be1e3c4e09
commit
fa86571448
3 changed files with 7 additions and 7 deletions
|
|
@ -703,7 +703,7 @@ proc getTypeDescAux(m: BModule, typ: PType, check: var IntSet): Rope =
|
|||
else: getTupleDesc(m, t, result, check)
|
||||
if not isImportedType(t):
|
||||
add(m.s[cfsTypes], recdesc)
|
||||
elif tfIncompleteStruct notin t.flags:
|
||||
elif tfIncompleteStruct notin t.flags and isDefined("checkabi"):
|
||||
addf(m.s[cfsTypeInfo], "NIM_CHECK_SIZE($1, $2);$n", [result, rope(getSize(t))])
|
||||
of tySet:
|
||||
result = getTypeName(t.lastSon) & "Set"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue