| 54 | } |
| 55 | |
| 56 | static int xml_encode (lua_State *L) { |
| 57 | auto& root = *pluto_newclassinst(L, soup::UniquePtr<soup::XmlNode>); |
| 58 | check_xml(L, 1, root); |
| 59 | if (lua_istrue(L, 2)) { |
| 60 | pluto_pushstring(L, root->encodePretty()); |
| 61 | } |
| 62 | else { |
| 63 | pluto_pushstring(L, root->encode()); |
| 64 | } |
| 65 | return 1; |
| 66 | } |
| 67 | |
| 68 | static void pushxmltag (lua_State *L, const soup::XmlTag& tag) { |
| 69 | lua_checkstack(L, 5); |
nothing calls this directly
no test coverage detected