cosmopolitan/tool
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
..
build Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
decode Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
emacs Add more POSIX function stubs 2021-03-02 03:27:55 -08:00
hash Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
net Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
scripts Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
viz Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
tool.mk Make Cosmopolitan ANSI C89 compatible 2021-02-03 17:48:59 -08:00