cosmopolitan/libc/testlib
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
..
thunks Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
almostequal.c Change license 2020-12-27 17:18:44 -08:00
almostequalf.c Change license 2020-12-27 17:18:44 -08:00
almostequallongdouble.c Change license 2020-12-27 17:18:44 -08:00
bench.h wip on intellisense (again) 2021-02-02 11:14:45 -05:00
bench.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
benchrunner.c Expose public garbage collector API for C language 2021-03-08 10:59:34 -08:00
binequals.c Change license 2020-12-27 17:18:44 -08:00
clearxmmregisters.c Change license 2020-12-27 17:18:44 -08:00
combo.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
comborunner.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
contains.c Change license 2020-12-27 17:18:44 -08:00
endswith.c Change license 2020-12-27 17:18:44 -08:00
ezbench.h Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ezbenchcontrol.c Change license 2020-12-27 17:18:44 -08:00
ezbenchreport.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
fixture.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fixturerunner.c Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
formatbinaryasglyphs.c Change license 2020-12-27 17:18:44 -08:00
formatbinaryashex.c Change license 2020-12-27 17:18:44 -08:00
formatbool.c Change license 2020-12-27 17:18:44 -08:00
formatfloat.c Change license 2020-12-27 17:18:44 -08:00
formatint.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
formatrange.c Apply some touchups 2021-02-07 07:02:46 -08:00
formatstr.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
globals.c Change license 2020-12-27 17:18:44 -08:00
hexequals.c Change license 2020-12-27 17:18:44 -08:00
hyperion.h Initial import 2020-06-15 07:18:57 -07:00
hyperion.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
hyperion.txt Initial import 2020-06-15 07:18:57 -07:00
incrementfailed.c Change license 2020-12-27 17:18:44 -08:00
runner.c Change license 2020-12-27 17:18:44 -08:00
shoulddebugbreak.c Change license 2020-12-27 17:18:44 -08:00
showerror.c Remove dollars from system call support symbols 2021-02-03 19:35:29 -08:00
showerror_.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
startswith.c Change license 2020-12-27 17:18:44 -08:00
strcaseequals.c Change license 2020-12-27 17:18:44 -08:00
strequals.c Change license 2020-12-27 17:18:44 -08:00
testcase.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
testlib.h Remove garbage collector macro from header (#114) 2021-03-07 20:23:29 -08:00
testlib.mk Support malloc() on bare metal 2021-02-24 00:53:24 -08:00
testmain.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
testrunner.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
thrashcodecache.S Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
ugly.h Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00