]> granicus.if.org Git - python/commit
When a ctypes C callback function is called, zero out the result
authorThomas Heller <theller@ctypes.org>
Fri, 11 Aug 2006 19:55:35 +0000 (19:55 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 11 Aug 2006 19:55:35 +0000 (19:55 +0000)
commit2a899c8b767144e809418fd04f83e4e5789084cd
tree6fb25c2395ae8700396b4c03b7d35af2c1113a74
parent975c8bb515d8b1765b36ac90a92cffea8b38b7db
When a ctypes C callback function is called, zero out the result
storage before converting the result to C data.  See the comment in
the code for details.

Provide a better context for errors when the conversion of a callback
function's result cannot be converted.
Modules/_ctypes/callbacks.c