Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codr7/hacktical-c
/ on_catch
Function
on_catch
error/tests.c:9–11 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
7
8
void error_tests() {
9
void on_catch(struct hc_error *e) {
10
assert(hc_streq(
"E123"
, e->message) == 0);
11
}
12
13
hc_catch(on_catch) {
14
hc_throw(
"E123 Going %s"
,
"Down!"
);
Callers
nothing calls this directly
Calls
1
hc_streq
Function · 0.85
Tested by
no test coverage detected