summaryrefslogtreecommitdiff
path: root/libstd/varargs.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-03-26 22:06:47 -0700
committerOri Bernstein <ori@eigenstate.org>2015-03-26 22:46:57 -0700
commit63780713d12f169f36b758d1b4cc7a1dc60f459e (patch)
treedb54651cc5959ed9defde686daaa36aeaf409521 /libstd/varargs.myr
parent2fecc0b35b964469479c81cab2ebf5359f2bab89 (diff)
downloadmc-63780713d12f169f36b758d1b4cc7a1dc60f459e.tar.gz
Generate type descriptions for valists.
the formatting test is still broken, but everything else seems to be working.
Diffstat (limited to 'libstd/varargs.myr')
-rw-r--r--libstd/varargs.myr5
1 files changed, 4 insertions, 1 deletions
diff --git a/libstd/varargs.myr b/libstd/varargs.myr
index bcaac76..99d04d3 100644
--- a/libstd/varargs.myr
+++ b/libstd/varargs.myr
@@ -19,7 +19,10 @@ type valist = byte#
* force varargs onto the stack regardless.
*/
const vastart = {args
- -> args castto(valist)
+ var ap, dump : byte#
+
+ (dump, ap) = vanext(args castto(valist))
+ -> ap
}
generic vanext = {ap -> (@a, valist)