abi check: prefer nim constant to enable, document

This commit is contained in:
Jacek Sieka 2016-11-03 22:30:00 +08:00
commit fa86571448
3 changed files with 7 additions and 7 deletions

View file

@ -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"