summaryrefslogtreecommitdiff
path: root/lib/std/introspect.myr
diff options
context:
space:
mode:
authorS. Gilles <sgilles@umd.edu>2019-11-24 18:20:51 -0500
committerOri Bernstein <ori@eigenstate.org>2019-12-04 22:27:28 -0800
commit6a113c23192c0877185aadddbc58b943ed68dd7b (patch)
tree48c9c3514c45a21c39d514e7371cf0083e1cdd00 /lib/std/introspect.myr
parent03ef9a246d5f6f8013c19285224323e64206c415 (diff)
downloadmc-6a113c23192c0877185aadddbc58b943ed68dd7b.tar.gz
Make vanext decrement tc.nelt unconditionally
This allows formatting functions to pass off the valist to type-specific formatters, which may themselves consume elements from the valist, and still check for correct argument counts without passing around counter variables.
Diffstat (limited to 'lib/std/introspect.myr')
-rw-r--r--lib/std/introspect.myr1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/introspect.myr b/lib/std/introspect.myr
index aec9e69..5198aeb 100644
--- a/lib/std/introspect.myr
+++ b/lib/std/introspect.myr
@@ -189,6 +189,7 @@ const ncnext = {tc
(n, sz) = getipacked(tc.rem)
enc = tc.rem[sz:sz+n]
tc.rem = tc.rem[sz+n:]
+ tc.nelt--
-> (name, enc)
}