zig/test
Andrew Kelley 20f63e588e
async functions have error return traces where appropriate
however the traces are not merged on `await` or async function calls
yet.

When an async function has an error set or error union as its return
type, it has a `StackTrace` before the args in the frame, so that it is
accessible from `anyframe->T` awaiters. However when it does not have an
errorable return type, but it does call or await an errorable, it has a
stack trace just before the locals. This way when doing an `@asyncCall`
on an async function pointer, it can populate the args (which are after
the `StackTrace`) because it knows the offset of the args based only on
the return type.

This sort of matches normal functions, where a stack trace pointer could
be supplied by a parameter, or it could be supplied by the stack of the
function, depending on whether the function itself is errorable.
2019-08-05 03:10:14 -04:00
..
stage1 async functions have error return traces where appropriate 2019-08-05 03:10:14 -04:00
stage2 Recursive rewrite of stage2 parser, part 3 2019-05-12 02:01:45 -07:00
standalone retire the example/ folder, rename test-build-examples to "standalone" 2019-07-16 12:15:46 -04:00
assemble_and_link.zig use * for pointer type instead of & 2018-05-31 17:28:07 -04:00
cli.zig heap: make one global instance of DirectAllocator 2019-06-22 14:10:53 -04:00
compare_output.zig breaking: Add positional, precision and width support to std.fmt 2019-06-21 20:11:15 +12:00
compile_errors.zig implement @asyncCall which supports async function pointers 2019-08-03 16:17:42 -04:00
gen_h.zig gen-h: do not output visibility macros when the build is static 2019-05-25 14:17:59 +02:00
runtime_safety.zig implement @asyncCall which supports async function pointers 2019-08-03 16:17:42 -04:00
standalone.zig retire the example/ folder, rename test-build-examples to "standalone" 2019-07-16 12:15:46 -04:00
tests.zig compiler-rt: add __muldi3 2019-07-22 12:49:26 -04:00
translate_c.zig fix escape sequence rendering 2019-07-23 14:49:19 -04:00