Commit 1d413f0a authored by Stefan Behnel's avatar Stefan Behnel

disable exception check for special C return type (always assume that it's an...

disable exception check for special C return type (always assume that it's an exception when -1 is returned)

--HG--
extra : amend_source : 88f30462a27faf52fcee83af0d1dce714e4f7e69
parent 72698b0b
...@@ -1513,7 +1513,8 @@ class CReturnCodeType(CIntType): ...@@ -1513,7 +1513,8 @@ class CReturnCodeType(CIntType):
to_py_function = "__Pyx_Owned_Py_None" to_py_function = "__Pyx_Owned_Py_None"
is_returncode = 1 is_returncode = True
exception_check = False
class CBIntType(CIntType): class CBIntType(CIntType):
......
...@@ -93,7 +93,7 @@ class Signature(object): ...@@ -93,7 +93,7 @@ class Signature(object):
self.fixed_arg_format = arg_format self.fixed_arg_format = arg_format
self.ret_format = ret_format self.ret_format = ret_format
self.error_value = self.error_value_map.get(ret_format, None) self.error_value = self.error_value_map.get(ret_format, None)
self.exception_check = self.error_value is not None self.exception_check = ret_format != 'r' and self.error_value is not None
self.is_staticmethod = False self.is_staticmethod = False
def num_fixed_args(self): def num_fixed_args(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment