| 1 | #pragma once | ||
| 2 | #include <xs.h> | ||
| 3 | #include <dict.hpp> | ||
| 4 | using namespace json_tree; | ||
| 5 | |||
| 6 | namespace xs { | ||
| 7 | template <class T> struct Typemap<Dict*, T> : TypemapObject<Dict*, T, ObjectTypePtr, ObjectStorageMG> { | ||
| 8 | 0 | static panda::string package () { return "JSON::Immutable::XS"; } | |
| 9 | }; | ||
| 10 | template <class T> struct Typemap<const Dict*, T> : TypemapObject<const Dict*, T, ObjectTypeForeignPtr, ObjectStorageMG> { | ||
| 11 | 4 | static panda::string package () { return "JSON::Immutable::XS"; } | |
| 12 | }; | ||
| 13 | } |