MCPcopy Create free account
hub / github.com/codr7/hacktical-c / on_catch

Function on_catch

malloc1/tests.c:27–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 bool caught = false;
26
27 void on_catch(struct hc_error *e) {
28 assert(hc_streq(e->message, HC_NO_MEMORY) == 0);
29 caught = true;
30 }
31
32 hc_catch(on_catch) {
33 hc_acquire(&a.malloc, s);

Callers

nothing calls this directly

Calls 1

hc_streqFunction · 0.85

Tested by

no test coverage detected