MCPcopy Create free account
hub / github.com/commonmark/cmark / cmark_node_get_on_exit

Function cmark_node_get_on_exit

src/node.c:609–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607}
608
609const char *cmark_node_get_on_exit(cmark_node *node) {
610 if (node == NULL) {
611 return NULL;
612 }
613
614 switch (node->type) {
615 case CMARK_NODE_CUSTOM_INLINE:
616 case CMARK_NODE_CUSTOM_BLOCK:
617 return node->as.custom.on_exit ? (char *)node->as.custom.on_exit : "";
618 default:
619 break;
620 }
621
622 return NULL;
623}
624
625int cmark_node_set_on_exit(cmark_node *node, const char *on_exit) {
626 if (node == NULL) {

Callers 4

custom_nodesFunction · 0.85
S_render_nodeFunction · 0.85
S_render_nodeFunction · 0.85
S_render_nodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected