cosmopolitan/test
Justine Tunney 33e8fc8687 Expose public garbage collector API for C language
You can now do epic things like this:

    puts(_gc(xasprintf("%d", 123)));

The _gc() API is shorthand for _defer() which works like Go's keyword:

    const char *s = xasprintf("%d", 123);
    _defer(free, s);
    puts(s);

Be sure to always use -fno-omit-frame-pointer which makes code fast too.

Enjoy! See also #114
2021-03-08 10:59:34 -08:00
..
dsp Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
libc Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
net Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
tool Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
test.mk Support malloc() on bare metal 2021-02-24 00:53:24 -08:00