mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
* 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>
12 lines
165 B
Plaintext
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;
|
|
} |