Files
c3c/test/test_suite/contracts/inout_macro.c3
Zack Puhl 702b63ddb7 Add array::zip and Related Macros (#2370)
* zip / zip_into
* Deprecate `add_array` in favour of `push_all` on lists.
* Add support for generic lists for zip.

---------

Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
2025-08-16 13:30:24 +02:00

12 lines
165 B
Plaintext

import std;
<*
@param [&out] x
@require $defined(*x) : "x must be a pointer"
*>
macro foo(x) => *x = 1;
fn int main()
{
foo(0); // #error: x must be
return 0;
}