| 607 | } |
| 608 | |
| 609 | const 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 | |
| 625 | int cmark_node_set_on_exit(cmark_node *node, const char *on_exit) { |
| 626 | if (node == NULL) { |
no outgoing calls
no test coverage detected