| 793 | } |
| 794 | |
| 795 | std::unique_ptr<MjSpec> parseXMLString_wrapper(const std::string &xml) { |
| 796 | char error[1000]; |
| 797 | mjSpec *ptr = mj_parseXMLString(xml.c_str(), nullptr, error, sizeof(error)); |
| 798 | if (!ptr) { |
| 799 | mju_error("Could not create Spec from XML string: %s\n", error); |
| 800 | } |
| 801 | return std::unique_ptr<MjSpec>(new MjSpec(ptr)); |
| 802 | } |
| 803 | |
| 804 | std::unique_ptr<MjModel> mj_compile_wrapper_1(const MjSpec& spec) { |
| 805 | mjSpec* spec_ptr = spec.get(); |
nothing calls this directly
no test coverage detected