summaryrefslogtreecommitdiff
path: root/cffi/backend_ctypes.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-07-04 21:52:34 +0200
committerArmin Rigo <arigo@tunes.org>2015-07-04 21:52:34 +0200
commitda438dc658d9007d2d375116ce647a4b982aa227 (patch)
treeb541af40bb402b6ee556cc99c06706c92737a7cd /cffi/backend_ctypes.py
parenta108629085d42284fa84fcc0f563cff98dd78af7 (diff)
downloadcffi-da438dc658d9007d2d375116ce647a4b982aa227.tar.gz
New argument "onerror" on ffi.callback()
Diffstat (limited to 'cffi/backend_ctypes.py')
-rw-r--r--cffi/backend_ctypes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cffi/backend_ctypes.py b/cffi/backend_ctypes.py
index 5cc0c2a..b061cda 100644
--- a/cffi/backend_ctypes.py
+++ b/cffi/backend_ctypes.py
@@ -989,7 +989,8 @@ class CTypesBackend(object):
def cast(self, BType, source):
return BType._cast_from(source)
- def callback(self, BType, source, error):
+ def callback(self, BType, source, error, onerror):
+ assert onerror is None # XXX not implemented
return BType(source, error)
typeof = type