raise_py_exception='%s(); if (!PyErr_Occurred()) PyErr_SetString(PyExc_RuntimeError , "Error converting c++ exception.")'%func_type.exception_value.entry.cname
raise_py_exception='%s(); if (!PyErr_Occurred()) PyErr_SetString(PyExc_RuntimeError , "Error converting c++ exception.")'%func_type.exception_value.entry.cname
code.putln(
code.putln(
...
@@ -4003,7 +4010,7 @@ class UnopNode(ExprNode):
...
@@ -4003,7 +4010,7 @@ class UnopNode(ExprNode):
self.analyse_c_operation(env)
self.analyse_c_operation(env)
defcheck_const(self):
defcheck_const(self):
self.operand.check_const()
returnself.operand.check_const()
defis_py_operation(self):
defis_py_operation(self):
returnself.operand.type.is_pyobject
returnself.operand.type.is_pyobject
...
@@ -4149,7 +4156,7 @@ class AmpersandNode(ExprNode):
...
@@ -4149,7 +4156,7 @@ class AmpersandNode(ExprNode):
self.type=PyrexTypes.c_ptr_type(argtype)
self.type=PyrexTypes.c_ptr_type(argtype)
defcheck_const(self):
defcheck_const(self):
self.operand.check_const_addr()
returnself.operand.check_const_addr()
deferror(self,mess):
deferror(self,mess):
error(self.pos,mess)
error(self.pos,mess)
...
@@ -4245,7 +4252,7 @@ class TypecastNode(ExprNode):
...
@@ -4245,7 +4252,7 @@ class TypecastNode(ExprNode):
self.gil_error()
self.gil_error()
defcheck_const(self):
defcheck_const(self):
self.operand.check_const()
returnself.operand.check_const()
defcalculate_constant_result(self):
defcalculate_constant_result(self):
# we usually do not know the result of a type cast at code
# we usually do not know the result of a type cast at code