Home | History | Annotate | Download | only in test

Lines Matching refs:CALLBACK

12     def callback(self, *args):
18 result = PROTO(self.callback)(arg)
26 result = PROTO(self.callback)(-3, arg)
95 # a memory leak. A callback function cannot return a non-integral
115 # Only "fundamental" result types are supported for callback
168 CALLBACK = CFUNCTYPE(c_double, c_double)
172 integrate.argtypes = (c_double, c_double, CALLBACK, c_long)
178 result = integrate(0.0, 1.0, CALLBACK(func), 10)
218 # Issue #8275: buggy handling of callback args under Win64
221 CALLBACK = CFUNCTYPE(c_int, c_int, c_int, c_int, c_int, c_int)
222 # All this function does is call the callback with its args squared
224 func.argtypes = (c_int, c_int, c_int, c_int, c_int, CALLBACK)
227 def callback(a, b, c, d, e):
230 result = func(2, 3, 4, 5, 6, CALLBACK(callback))
231 self.assertEqual(result, callback(2*2, 3*3, 4*4, 5*5, 6*6))
234 # Issue #8275: buggy handling of callback args under Win64
237 CALLBACK = CFUNCTYPE(c_double, c_double, c_double, c_double,
239 # All this function does is call the callback with its args squared
242 c_double, c_double, CALLBACK)
245 def callback(a, b, c, d, e):
248 result = func(1.1, 2.2, 3.3, 4.4, 5.5, CALLBACK(callback))
250 callback(1.1*1.1, 2.2*2.2, 3.3*3.3, 4.4*4.4, 5.5*5.5))