| 8731 | } |
| 8732 | |
| 8733 | std::unique_ptr<MjSpec> parseXMLString_wrapper(const std::string &xml) { |
| 8734 | char error[1000]; |
| 8735 | mjSpec *ptr = mj_parseXMLString(xml.c_str(), nullptr, error, sizeof(error)); |
| 8736 | if (!ptr) { |
| 8737 | mju_error("Could not create Spec from XML string: %s\n", error); |
| 8738 | } |
| 8739 | return std::unique_ptr<MjSpec>(new MjSpec(ptr)); |
| 8740 | } |
| 8741 | |
| 8742 | std::unique_ptr<MjModel> mj_compile_wrapper_1(const MjSpec& spec) { |
| 8743 | mjSpec* spec_ptr = spec.get(); |
nothing calls this directly
no test coverage detected