Greg Ewing wrote: > Another API suggestion: a function such as > > void* PyCObject_AsVoidPtrWithDesc(PyObject* self, void *expected_desc) > > which checks the desc and raises an exception if it doesn't > match the expected value. which should probably be void* PyCObject_AsVoidPtrWithStringDesc(PyObject* self, const char *expected_desc) /* uses desc && !strcmp(desc, expected_desc), and can still crash... */ void* PyCObject_AsVoidPtrWithPtrDesc(PyObject* self, void *expected_desc) /* uses desc == expected_desc */ </F>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4