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

Function hc_dsl_set_fun

dsl/dsl.c:95–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void hc_dsl_set_fun(struct hc_dsl *dsl, const char *key, hc_vm_fun_t val) {
96 hc_dsl_setenv(dsl, key, &HC_VM_FUN)->as_other = val;
97}
98
99void hc_dsl_set_string(struct hc_dsl *dsl, const char *key, const char *val) {
100 hc_dsl_setenv(dsl, key, &HC_STRING)->as_string = strdup(val);

Callers 1

hc_dsl_initFunction · 0.85

Calls 1

hc_dsl_setenvFunction · 0.85

Tested by

no test coverage detected