newruntime: progress...

This commit is contained in:
Andreas Rumpf 2019-04-27 09:36:34 +02:00
commit 46ce797231
2 changed files with 7 additions and 6 deletions

View file

@ -737,8 +737,6 @@ proc p(n: PNode; c: var Con): PNode =
result.add r
else:
result.add keepVar(n, it, c)
else:
result.add keepVar(n, it, c)
of nkCallKinds:
let parameters = n[0].typ
let L = if parameters != nil: parameters.len else: 0

View file

@ -5,6 +5,9 @@ clicked!'''
disabled: "true"
"""
import core / allocators
import system / ansi_c
type
Widget* = ref object of RootObj
drawImpl: owned(proc (self: Widget))
@ -71,4 +74,4 @@ proc main =
main()
let (a, d) = allocCounters()
discard cprintf("%ld %ld new: %ld\n", a, d, allocs)
discard cprintf("%ld %ld alloc/dealloc pairs: %ld\n", a, d, allocs)