(ptr)
| 211 | |
| 212 | |
| 213 | def real_ptr(ptr): |
| 214 | try: |
| 215 | ptr = ptr['ptr_'] |
| 216 | except: |
| 217 | pass |
| 218 | |
| 219 | if int(ptr) == 0: |
| 220 | return None |
| 221 | # I'd think this should be a dynamic_cast instead of cast, but dynamic_cast |
| 222 | # doesn't seem to work. |
| 223 | return ptr.cast(ptr.dynamic_type) |
| 224 | |
| 225 | |
| 226 | def get_singleton(name): |
no outgoing calls
no test coverage detected