bugfix: exception tracking (still disabled)

This commit is contained in:
Araq 2012-11-01 19:57:48 +01:00
commit 224f42bbd7
3 changed files with 3 additions and 3 deletions

View file

@ -12,6 +12,7 @@ import
const const
hasTinyCBackend* = defined(tinyc) hasTinyCBackend* = defined(tinyc)
useEffectSystem* = false
type # please make sure we have under 32 options type # please make sure we have under 32 options
# (improves code efficiency a lot!) # (improves code efficiency a lot!)

View file

@ -219,8 +219,7 @@ proc checkRaisesSpec(spec, real: PNode) =
for r in items(real): for r in items(real):
block search: block search:
for s in 0 .. <spec.len: for s in 0 .. <spec.len:
# s supertype of r? if inheritanceDiff(r.excType, spec[s].typ) <= 0:
if inheritanceDiff(spec[s].typ, r.excType) <= 0:
used.incl(s) used.incl(s)
break search break search
# XXX call graph analysis would be nice here! # XXX call graph analysis would be nice here!

View file

@ -691,7 +691,7 @@ proc transformBody*(module: PSym, n: PNode, prc: PSym): PNode =
if nfTransf in n.flags or prc.kind in {skTemplate, skMacro}: if nfTransf in n.flags or prc.kind in {skTemplate, skMacro}:
result = n result = n
else: else:
when false: trackProc(prc, n) when useEffectSystem: trackProc(prc, n)
var c = openTransf(module, "") var c = openTransf(module, "")
result = processTransf(c, n) result = processTransf(c, n)
if prc.kind != skMacro: if prc.kind != skMacro: