| 19 | // Each extension instance will be one of these |
| 20 | template <class Data = char> |
| 21 | struct instance |
| 22 | { |
| 23 | PyObject_VAR_HEAD |
| 24 | PyObject* dict; |
| 25 | PyObject* weakrefs; |
| 26 | instance_holder* objects; |
| 27 | |
| 28 | typedef typename type_with_alignment< |
| 29 | ::boost::alignment_of<Data>::value |
| 30 | >::type align_t; |
| 31 | |
| 32 | union |
| 33 | { |
| 34 | align_t align; |
| 35 | char bytes[sizeof(Data)]; |
| 36 | } storage; |
| 37 | }; |
| 38 | |
| 39 | template <class Data> |
| 40 | struct additional_instance_size |
no outgoing calls
no test coverage detected