| 669 | } |
| 670 | |
| 671 | xml_node xml_document__root(xml_document* document) |
| 672 | { |
| 673 | if(!document->impl){ nullcThrowError("xml_document constructor wasn't called"); return xml_node(); } |
| 674 | pugi::xml_document *doc = document->impl->document; |
| 675 | if(!doc) |
| 676 | { |
| 677 | doc = document->impl->document = (pugi::xml_document*)nullcAllocate(sizeof(pugi::xml_document)); |
| 678 | ::new(doc) pugi::xml_document(); |
| 679 | } |
| 680 | xml_node ret; |
| 681 | ret.node = doc->root(); |
| 682 | return ret; |
| 683 | } |
| 684 | |
| 685 | void xml_document__finalize(xml_document_impl* document) |
| 686 | { |
nothing calls this directly
no test coverage detected