mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-10-27 11:26:43 +00:00
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
|
||
|---|---|---|
| .. | ||
| build | ||
| decode | ||
| emacs | ||
| hash | ||
| net | ||
| scripts | ||
| viz | ||
| tool.mk | ||