File: | pyext/gammalib/test_wrap.cpp |
Location: | line 9528, column 5 |
Description: | Value stored to 'module_head' is never read |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). |
3 | * Version 2.0.11 |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of |
6 | * coding conventions designed to improve portability and efficiency. Do not make |
7 | * changes to this file unless you know what you are doing--modify the SWIG |
8 | * interface file instead. |
9 | * ----------------------------------------------------------------------------- */ |
10 | |
11 | #define SWIGPYTHON |
12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
13 | |
14 | |
15 | #ifdef __cplusplus199711L |
16 | /* SwigValueWrapper is described in swig.swg */ |
17 | template<typename T> class SwigValueWrapper { |
18 | struct SwigMovePointer { |
19 | T *ptr; |
20 | SwigMovePointer(T *p) : ptr(p) { } |
21 | ~SwigMovePointer() { delete ptr; } |
22 | SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } |
23 | } pointer; |
24 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); |
25 | SwigValueWrapper(const SwigValueWrapper<T>& rhs); |
26 | public: |
27 | SwigValueWrapper() : pointer(0) { } |
28 | SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } |
29 | operator T&() const { return *pointer.ptr; } |
30 | T *operator&() { return pointer.ptr; } |
31 | }; |
32 | |
33 | template <typename T> T SwigValueInit() { |
34 | return T(); |
35 | } |
36 | #endif |
37 | |
38 | /* ----------------------------------------------------------------------------- |
39 | * This section contains generic SWIG labels for method/variable |
40 | * declarations/attributes, and other compiler dependent labels. |
41 | * ----------------------------------------------------------------------------- */ |
42 | |
43 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
44 | #ifndef SWIGTEMPLATEDISAMBIGUATOR |
45 | # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) |
46 | # define SWIGTEMPLATEDISAMBIGUATOR template |
47 | # elif defined(__HP_aCC) |
48 | /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ |
49 | /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ |
50 | # define SWIGTEMPLATEDISAMBIGUATOR template |
51 | # else |
52 | # define SWIGTEMPLATEDISAMBIGUATOR |
53 | # endif |
54 | #endif |
55 | |
56 | /* inline attribute */ |
57 | #ifndef SWIGINLINEinline |
58 | # if defined(__cplusplus199711L) || (defined(__GNUC__4) && !defined(__STRICT_ANSI__)) |
59 | # define SWIGINLINEinline inline |
60 | # else |
61 | # define SWIGINLINEinline |
62 | # endif |
63 | #endif |
64 | |
65 | /* attribute recognised by some compilers to avoid 'unused' warnings */ |
66 | #ifndef SWIGUNUSED__attribute__ ((__unused__)) |
67 | # if defined(__GNUC__4) |
68 | # if !(defined(__cplusplus199711L)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)) |
69 | # define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__)) |
70 | # else |
71 | # define SWIGUNUSED__attribute__ ((__unused__)) |
72 | # endif |
73 | # elif defined(__ICC) |
74 | # define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__)) |
75 | # else |
76 | # define SWIGUNUSED__attribute__ ((__unused__)) |
77 | # endif |
78 | #endif |
79 | |
80 | #ifndef SWIG_MSC_UNSUPPRESS_4505 |
81 | # if defined(_MSC_VER) |
82 | # pragma warning(disable : 4505) /* unreferenced local function has been removed */ |
83 | # endif |
84 | #endif |
85 | |
86 | #ifndef SWIGUNUSEDPARM |
87 | # ifdef __cplusplus199711L |
88 | # define SWIGUNUSEDPARM(p) |
89 | # else |
90 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED__attribute__ ((__unused__)) |
91 | # endif |
92 | #endif |
93 | |
94 | /* internal SWIG method */ |
95 | #ifndef SWIGINTERNstatic __attribute__ ((__unused__)) |
96 | # define SWIGINTERNstatic __attribute__ ((__unused__)) static SWIGUNUSED__attribute__ ((__unused__)) |
97 | #endif |
98 | |
99 | /* internal inline SWIG method */ |
100 | #ifndef SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline |
101 | # define SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline SWIGINTERNstatic __attribute__ ((__unused__)) SWIGINLINEinline |
102 | #endif |
103 | |
104 | /* exporting methods */ |
105 | #if (__GNUC__4 >= 4) || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4) |
106 | # ifndef GCC_HASCLASSVISIBILITY |
107 | # define GCC_HASCLASSVISIBILITY |
108 | # endif |
109 | #endif |
110 | |
111 | #ifndef SWIGEXPORT__attribute__ ((visibility("default"))) |
112 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
113 | # if defined(STATIC_LINKED) |
114 | # define SWIGEXPORT__attribute__ ((visibility("default"))) |
115 | # else |
116 | # define SWIGEXPORT__attribute__ ((visibility("default"))) __declspec(dllexport) |
117 | # endif |
118 | # else |
119 | # if defined(__GNUC__4) && defined(GCC_HASCLASSVISIBILITY) |
120 | # define SWIGEXPORT__attribute__ ((visibility("default"))) __attribute__ ((visibility("default"))) |
121 | # else |
122 | # define SWIGEXPORT__attribute__ ((visibility("default"))) |
123 | # endif |
124 | # endif |
125 | #endif |
126 | |
127 | /* calling conventions for Windows */ |
128 | #ifndef SWIGSTDCALL |
129 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
130 | # define SWIGSTDCALL __stdcall |
131 | # else |
132 | # define SWIGSTDCALL |
133 | # endif |
134 | #endif |
135 | |
136 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
137 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) |
138 | # define _CRT_SECURE_NO_DEPRECATE |
139 | #endif |
140 | |
141 | /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ |
142 | #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) |
143 | # define _SCL_SECURE_NO_DEPRECATE |
144 | #endif |
145 | |
146 | |
147 | |
148 | #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) |
149 | /* Use debug wrappers with the Python release dll */ |
150 | # undef _DEBUG |
151 | # include <Python.h> |
152 | # define _DEBUG |
153 | #else |
154 | # include <Python.h> |
155 | #endif |
156 | |
157 | /* ----------------------------------------------------------------------------- |
158 | * swigrun.swg |
159 | * |
160 | * This file contains generic C API SWIG runtime support for pointer |
161 | * type checking. |
162 | * ----------------------------------------------------------------------------- */ |
163 | |
164 | /* This should only be incremented when either the layout of swig_type_info changes, |
165 | or for whatever reason, the runtime changes incompatibly */ |
166 | #define SWIG_RUNTIME_VERSION"4" "4" |
167 | |
168 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
169 | #ifdef SWIG_TYPE_TABLE |
170 | # define SWIG_QUOTE_STRING(x) #x |
171 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) |
172 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) |
173 | #else |
174 | # define SWIG_TYPE_TABLE_NAME |
175 | #endif |
176 | |
177 | /* |
178 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for |
179 | creating a static or dynamic library from the SWIG runtime code. |
180 | In 99.9% of the cases, SWIG just needs to declare them as 'static'. |
181 | |
182 | But only do this if strictly necessary, ie, if you have problems |
183 | with your compiler or suchlike. |
184 | */ |
185 | |
186 | #ifndef SWIGRUNTIMEstatic __attribute__ ((__unused__)) |
187 | # define SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINTERNstatic __attribute__ ((__unused__)) |
188 | #endif |
189 | |
190 | #ifndef SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline |
191 | # define SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINLINEinline |
192 | #endif |
193 | |
194 | /* Generic buffer size */ |
195 | #ifndef SWIG_BUFFER_SIZE1024 |
196 | # define SWIG_BUFFER_SIZE1024 1024 |
197 | #endif |
198 | |
199 | /* Flags for pointer conversions */ |
200 | #define SWIG_POINTER_DISOWN0x1 0x1 |
201 | #define SWIG_CAST_NEW_MEMORY0x2 0x2 |
202 | |
203 | /* Flags for new pointer objects */ |
204 | #define SWIG_POINTER_OWN0x1 0x1 |
205 | |
206 | |
207 | /* |
208 | Flags/methods for returning states. |
209 | |
210 | The SWIG conversion methods, as ConvertPtr, return an integer |
211 | that tells if the conversion was successful or not. And if not, |
212 | an error code can be returned (see swigerrors.swg for the codes). |
213 | |
214 | Use the following macros/flags to set or process the returning |
215 | states. |
216 | |
217 | In old versions of SWIG, code such as the following was usually written: |
218 | |
219 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { |
220 | // success code |
221 | } else { |
222 | //fail code |
223 | } |
224 | |
225 | Now you can be more explicit: |
226 | |
227 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); |
228 | if (SWIG_IsOK(res)) { |
229 | // success code |
230 | } else { |
231 | // fail code |
232 | } |
233 | |
234 | which is the same really, but now you can also do |
235 | |
236 | Type *ptr; |
237 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); |
238 | if (SWIG_IsOK(res)) { |
239 | // success code |
240 | if (SWIG_IsNewObj(res) { |
241 | ... |
242 | delete *ptr; |
243 | } else { |
244 | ... |
245 | } |
246 | } else { |
247 | // fail code |
248 | } |
249 | |
250 | I.e., now SWIG_ConvertPtr can return new objects and you can |
251 | identify the case and take care of the deallocation. Of course that |
252 | also requires SWIG_ConvertPtr to return new result values, such as |
253 | |
254 | int SWIG_ConvertPtr(obj, ptr,...) { |
255 | if (<obj is ok>) { |
256 | if (<need new object>) { |
257 | *ptr = <ptr to new allocated object>; |
258 | return SWIG_NEWOBJ; |
259 | } else { |
260 | *ptr = <ptr to old object>; |
261 | return SWIG_OLDOBJ; |
262 | } |
263 | } else { |
264 | return SWIG_BADOBJ; |
265 | } |
266 | } |
267 | |
268 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be |
269 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the |
270 | SWIG errors code. |
271 | |
272 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code |
273 | allows to return the 'cast rank', for example, if you have this |
274 | |
275 | int food(double) |
276 | int fooi(int); |
277 | |
278 | and you call |
279 | |
280 | food(1) // cast rank '1' (1 -> 1.0) |
281 | fooi(1) // cast rank '0' |
282 | |
283 | just use the SWIG_AddCast()/SWIG_CheckState() |
284 | */ |
285 | |
286 | #define SWIG_OK(0) (0) |
287 | #define SWIG_ERROR(-1) (-1) |
288 | #define SWIG_IsOK(r)(r >= 0) (r >= 0) |
289 | #define SWIG_ArgError(r)((r != (-1)) ? r : -5) ((r != SWIG_ERROR(-1)) ? r : SWIG_TypeError-5) |
290 | |
291 | /* The CastRankLimit says how many bits are used for the cast rank */ |
292 | #define SWIG_CASTRANKLIMIT(1 << 8) (1 << 8) |
293 | /* The NewMask denotes the object was created (using new/malloc) */ |
294 | #define SWIG_NEWOBJMASK((1 << 8) << 1) (SWIG_CASTRANKLIMIT(1 << 8) << 1) |
295 | /* The TmpMask is for in/out typemaps that use temporal objects */ |
296 | #define SWIG_TMPOBJMASK(((1 << 8) << 1) << 1) (SWIG_NEWOBJMASK((1 << 8) << 1) << 1) |
297 | /* Simple returning values */ |
298 | #define SWIG_BADOBJ((-1)) (SWIG_ERROR(-1)) |
299 | #define SWIG_OLDOBJ((0)) (SWIG_OK(0)) |
300 | #define SWIG_NEWOBJ((0) | ((1 << 8) << 1)) (SWIG_OK(0) | SWIG_NEWOBJMASK((1 << 8) << 1)) |
301 | #define SWIG_TMPOBJ((0) | (((1 << 8) << 1) << 1)) (SWIG_OK(0) | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) |
302 | /* Check, add and del mask methods */ |
303 | #define SWIG_AddNewMask(r)((r >= 0) ? (r | ((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_NEWOBJMASK((1 << 8) << 1)) : r) |
304 | #define SWIG_DelNewMask(r)((r >= 0) ? (r & ~((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_NEWOBJMASK((1 << 8) << 1)) : r) |
305 | #define SWIG_IsNewObj(r)((r >= 0) && (r & ((1 << 8) << 1)) ) (SWIG_IsOK(r)(r >= 0) && (r & SWIG_NEWOBJMASK((1 << 8) << 1))) |
306 | #define SWIG_AddTmpMask(r)((r >= 0) ? (r | (((1 << 8) << 1) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r) |
307 | #define SWIG_DelTmpMask(r)((r >= 0) ? (r & ~(((1 << 8) << 1) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r) |
308 | #define SWIG_IsTmpObj(r)((r >= 0) && (r & (((1 << 8) << 1) << 1))) (SWIG_IsOK(r)(r >= 0) && (r & SWIG_TMPOBJMASK(((1 << 8) << 1) << 1))) |
309 | |
310 | /* Cast-Rank Mode */ |
311 | #if defined(SWIG_CASTRANK_MODE) |
312 | # ifndef SWIG_TypeRank |
313 | # define SWIG_TypeRank unsigned long |
314 | # endif |
315 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ |
316 | # define SWIG_MAXCASTRANK (2) |
317 | # endif |
318 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT(1 << 8)) -1) |
319 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) |
320 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_AddCast(int r)(int r) { |
321 | return SWIG_IsOK(r)(r >= 0) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR(-1)) : r; |
322 | } |
323 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_CheckState(int r)((int r >= 0) ? 1 : 0) { |
324 | return SWIG_IsOK(r)(r >= 0) ? SWIG_CastRank(r) + 1 : 0; |
325 | } |
326 | #else /* no cast-rank mode */ |
327 | # define SWIG_AddCast(r)(r) (r) |
328 | # define SWIG_CheckState(r)((r >= 0) ? 1 : 0) (SWIG_IsOK(r)(r >= 0) ? 1 : 0) |
329 | #endif |
330 | |
331 | |
332 | #include <string.h> |
333 | |
334 | #ifdef __cplusplus199711L |
335 | extern "C" { |
336 | #endif |
337 | |
338 | typedef void *(*swig_converter_func)(void *, int *); |
339 | typedef struct swig_type_info *(*swig_dycast_func)(void **); |
340 | |
341 | /* Structure to store information on one type */ |
342 | typedef struct swig_type_info { |
343 | const char *name; /* mangled name of this type */ |
344 | const char *str; /* human readable name of this type */ |
345 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ |
346 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ |
347 | void *clientdata; /* language specific type data */ |
348 | int owndata; /* flag if the structure owns the clientdata */ |
349 | } swig_type_info; |
350 | |
351 | /* Structure to store a type and conversion function used for casting */ |
352 | typedef struct swig_cast_info { |
353 | swig_type_info *type; /* pointer to type that is equivalent to this type */ |
354 | swig_converter_func converter; /* function to cast the void pointers */ |
355 | struct swig_cast_info *next; /* pointer to next cast in linked list */ |
356 | struct swig_cast_info *prev; /* pointer to the previous cast */ |
357 | } swig_cast_info; |
358 | |
359 | /* Structure used to store module information |
360 | * Each module generates one structure like this, and the runtime collects |
361 | * all of these structures and stores them in a circularly linked list.*/ |
362 | typedef struct swig_module_info { |
363 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ |
364 | size_t size; /* Number of types in this module */ |
365 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ |
366 | swig_type_info **type_initial; /* Array of initially generated type structures */ |
367 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ |
368 | void *clientdata; /* Language specific module data */ |
369 | } swig_module_info; |
370 | |
371 | /* |
372 | Compare two type names skipping the space characters, therefore |
373 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. |
374 | |
375 | Return 0 when the two name types are equivalent, as in |
376 | strncmp, but skipping ' '. |
377 | */ |
378 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
379 | SWIG_TypeNameComp(const char *f1, const char *l1, |
380 | const char *f2, const char *l2) { |
381 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
382 | while ((*f1 == ' ') && (f1 != l1)) ++f1; |
383 | while ((*f2 == ' ') && (f2 != l2)) ++f2; |
384 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
385 | } |
386 | return (int)((l1 - f1) - (l2 - f2)); |
387 | } |
388 | |
389 | /* |
390 | Check type equivalence in a name list like <name1>|<name2>|... |
391 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb |
392 | */ |
393 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
394 | SWIG_TypeCmp(const char *nb, const char *tb) { |
395 | int equiv = 1; |
396 | const char* te = tb + strlen(tb); |
397 | const char* ne = nb; |
398 | while (equiv != 0 && *ne) { |
399 | for (nb = ne; *ne; ++ne) { |
400 | if (*ne == '|') break; |
401 | } |
402 | equiv = SWIG_TypeNameComp(nb, ne, tb, te); |
403 | if (*ne) ++ne; |
404 | } |
405 | return equiv; |
406 | } |
407 | |
408 | /* |
409 | Check type equivalence in a name list like <name1>|<name2>|... |
410 | Return 0 if not equal, 1 if equal |
411 | */ |
412 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
413 | SWIG_TypeEquiv(const char *nb, const char *tb) { |
414 | return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; |
415 | } |
416 | |
417 | /* |
418 | Check the typename |
419 | */ |
420 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info * |
421 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
422 | if (ty) { |
423 | swig_cast_info *iter = ty->cast; |
424 | while (iter) { |
425 | if (strcmp(iter->type->name, c) == 0) { |
426 | if (iter == ty->cast) |
427 | return iter; |
428 | /* Move iter to the top of the linked list */ |
429 | iter->prev->next = iter->next; |
430 | if (iter->next) |
431 | iter->next->prev = iter->prev; |
432 | iter->next = ty->cast; |
433 | iter->prev = 0; |
434 | if (ty->cast) ty->cast->prev = iter; |
435 | ty->cast = iter; |
436 | return iter; |
437 | } |
438 | iter = iter->next; |
439 | } |
440 | } |
441 | return 0; |
442 | } |
443 | |
444 | /* |
445 | Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison |
446 | */ |
447 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info * |
448 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { |
449 | if (ty) { |
450 | swig_cast_info *iter = ty->cast; |
451 | while (iter) { |
452 | if (iter->type == from) { |
453 | if (iter == ty->cast) |
454 | return iter; |
455 | /* Move iter to the top of the linked list */ |
456 | iter->prev->next = iter->next; |
457 | if (iter->next) |
458 | iter->next->prev = iter->prev; |
459 | iter->next = ty->cast; |
460 | iter->prev = 0; |
461 | if (ty->cast) ty->cast->prev = iter; |
462 | ty->cast = iter; |
463 | return iter; |
464 | } |
465 | iter = iter->next; |
466 | } |
467 | } |
468 | return 0; |
469 | } |
470 | |
471 | /* |
472 | Cast a pointer up an inheritance hierarchy |
473 | */ |
474 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void * |
475 | SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { |
476 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
477 | } |
478 | |
479 | /* |
480 | Dynamic pointer casting. Down an inheritance hierarchy |
481 | */ |
482 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
483 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { |
484 | swig_type_info *lastty = ty; |
485 | if (!ty || !ty->dcast) return ty; |
486 | while (ty && (ty->dcast)) { |
487 | ty = (*ty->dcast)(ptr); |
488 | if (ty) lastty = ty; |
489 | } |
490 | return lastty; |
491 | } |
492 | |
493 | /* |
494 | Return the name associated with this type |
495 | */ |
496 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char * |
497 | SWIG_TypeName(const swig_type_info *ty) { |
498 | return ty->name; |
499 | } |
500 | |
501 | /* |
502 | Return the pretty name associated with this type, |
503 | that is an unmangled type name in a form presentable to the user. |
504 | */ |
505 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
506 | SWIG_TypePrettyName(const swig_type_info *type) { |
507 | /* The "str" field contains the equivalent pretty names of the |
508 | type, separated by vertical-bar characters. We choose |
509 | to print the last name, as it is often (?) the most |
510 | specific. */ |
511 | if (!type) return NULL__null; |
512 | if (type->str != NULL__null) { |
513 | const char *last_name = type->str; |
514 | const char *s; |
515 | for (s = type->str; *s; s++) |
516 | if (*s == '|') last_name = s+1; |
517 | return last_name; |
518 | } |
519 | else |
520 | return type->name; |
521 | } |
522 | |
523 | /* |
524 | Set the clientdata field for a type |
525 | */ |
526 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
527 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
528 | swig_cast_info *cast = ti->cast; |
529 | /* if (ti->clientdata == clientdata) return; */ |
530 | ti->clientdata = clientdata; |
531 | |
532 | while (cast) { |
533 | if (!cast->converter) { |
534 | swig_type_info *tc = cast->type; |
535 | if (!tc->clientdata) { |
536 | SWIG_TypeClientData(tc, clientdata); |
537 | } |
538 | } |
539 | cast = cast->next; |
540 | } |
541 | } |
542 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
543 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { |
544 | SWIG_TypeClientData(ti, clientdata); |
545 | ti->owndata = 1; |
546 | } |
547 | |
548 | /* |
549 | Search for a swig_type_info structure only by mangled name |
550 | Search is a O(log #types) |
551 | |
552 | We start searching at module start, and finish searching when start == end. |
553 | Note: if start == end at the beginning of the function, we go all the way around |
554 | the circular list. |
555 | */ |
556 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
557 | SWIG_MangledTypeQueryModule(swig_module_info *start, |
558 | swig_module_info *end, |
559 | const char *name) { |
560 | swig_module_info *iter = start; |
561 | do { |
562 | if (iter->size) { |
563 | register size_t l = 0; |
564 | register size_t r = iter->size - 1; |
565 | do { |
566 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ |
567 | register size_t i = (l + r) >> 1; |
568 | const char *iname = iter->types[i]->name; |
569 | if (iname) { |
570 | register int compare = strcmp(name, iname); |
571 | if (compare == 0) { |
572 | return iter->types[i]; |
573 | } else if (compare < 0) { |
574 | if (i) { |
575 | r = i - 1; |
576 | } else { |
577 | break; |
578 | } |
579 | } else if (compare > 0) { |
580 | l = i + 1; |
581 | } |
582 | } else { |
583 | break; /* should never happen */ |
584 | } |
585 | } while (l <= r); |
586 | } |
587 | iter = iter->next; |
588 | } while (iter != end); |
589 | return 0; |
590 | } |
591 | |
592 | /* |
593 | Search for a swig_type_info structure for either a mangled name or a human readable name. |
594 | It first searches the mangled names of the types, which is a O(log #types) |
595 | If a type is not found it then searches the human readable names, which is O(#types). |
596 | |
597 | We start searching at module start, and finish searching when start == end. |
598 | Note: if start == end at the beginning of the function, we go all the way around |
599 | the circular list. |
600 | */ |
601 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
602 | SWIG_TypeQueryModule(swig_module_info *start, |
603 | swig_module_info *end, |
604 | const char *name) { |
605 | /* STEP 1: Search the name field using binary search */ |
606 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); |
607 | if (ret) { |
608 | return ret; |
609 | } else { |
610 | /* STEP 2: If the type hasn't been found, do a complete search |
611 | of the str field (the human readable name) */ |
612 | swig_module_info *iter = start; |
613 | do { |
614 | register size_t i = 0; |
615 | for (; i < iter->size; ++i) { |
616 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
617 | return iter->types[i]; |
618 | } |
619 | iter = iter->next; |
620 | } while (iter != end); |
621 | } |
622 | |
623 | /* neither found a match */ |
624 | return 0; |
625 | } |
626 | |
627 | /* |
628 | Pack binary data into a string |
629 | */ |
630 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
631 | SWIG_PackData(char *c, void *ptr, size_t sz) { |
632 | static const char hex[17] = "0123456789abcdef"; |
633 | register const unsigned char *u = (unsigned char *) ptr; |
634 | register const unsigned char *eu = u + sz; |
635 | for (; u != eu; ++u) { |
636 | register unsigned char uu = *u; |
637 | *(c++) = hex[(uu & 0xf0) >> 4]; |
638 | *(c++) = hex[uu & 0xf]; |
639 | } |
640 | return c; |
641 | } |
642 | |
643 | /* |
644 | Unpack binary data from a string |
645 | */ |
646 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
647 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { |
648 | register unsigned char *u = (unsigned char *) ptr; |
649 | register const unsigned char *eu = u + sz; |
650 | for (; u != eu; ++u) { |
651 | register char d = *(c++); |
652 | register unsigned char uu; |
653 | if ((d >= '0') && (d <= '9')) |
654 | uu = ((d - '0') << 4); |
655 | else if ((d >= 'a') && (d <= 'f')) |
656 | uu = ((d - ('a'-10)) << 4); |
657 | else |
658 | return (char *) 0; |
659 | d = *(c++); |
660 | if ((d >= '0') && (d <= '9')) |
661 | uu |= (d - '0'); |
662 | else if ((d >= 'a') && (d <= 'f')) |
663 | uu |= (d - ('a'-10)); |
664 | else |
665 | return (char *) 0; |
666 | *u = uu; |
667 | } |
668 | return c; |
669 | } |
670 | |
671 | /* |
672 | Pack 'void *' into a string buffer. |
673 | */ |
674 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
675 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { |
676 | char *r = buff; |
677 | if ((2*sizeof(void *) + 2) > bsz) return 0; |
678 | *(r++) = '_'; |
679 | r = SWIG_PackData(r,&ptr,sizeof(void *)); |
680 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; |
681 | strcpy(r,name); |
682 | return buff; |
683 | } |
684 | |
685 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
686 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { |
687 | if (*c != '_') { |
688 | if (strcmp(c,"NULL") == 0) { |
689 | *ptr = (void *) 0; |
690 | return name; |
691 | } else { |
692 | return 0; |
693 | } |
694 | } |
695 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); |
696 | } |
697 | |
698 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
699 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { |
700 | char *r = buff; |
701 | size_t lname = (name ? strlen(name) : 0); |
702 | if ((2*sz + 2 + lname) > bsz) return 0; |
703 | *(r++) = '_'; |
704 | r = SWIG_PackData(r,ptr,sz); |
705 | if (lname) { |
706 | strncpy(r,name,lname+1); |
707 | } else { |
708 | *r = 0; |
709 | } |
710 | return buff; |
711 | } |
712 | |
713 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
714 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { |
715 | if (*c != '_') { |
716 | if (strcmp(c,"NULL") == 0) { |
717 | memset(ptr,0,sz); |
718 | return name; |
719 | } else { |
720 | return 0; |
721 | } |
722 | } |
723 | return SWIG_UnpackData(++c,ptr,sz); |
724 | } |
725 | |
726 | #ifdef __cplusplus199711L |
727 | } |
728 | #endif |
729 | |
730 | /* Errors in SWIG */ |
731 | #define SWIG_UnknownError-1 -1 |
732 | #define SWIG_IOError-2 -2 |
733 | #define SWIG_RuntimeError-3 -3 |
734 | #define SWIG_IndexError-4 -4 |
735 | #define SWIG_TypeError-5 -5 |
736 | #define SWIG_DivisionByZero-6 -6 |
737 | #define SWIG_OverflowError-7 -7 |
738 | #define SWIG_SyntaxError-8 -8 |
739 | #define SWIG_ValueError-9 -9 |
740 | #define SWIG_SystemError-10 -10 |
741 | #define SWIG_AttributeError-11 -11 |
742 | #define SWIG_MemoryError-12 -12 |
743 | #define SWIG_NullReferenceError-13 -13 |
744 | |
745 | |
746 | |
747 | /* Compatibility macros for Python 3 */ |
748 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
749 | |
750 | #define PyClass_Check(obj)((obj)->ob_type == &PyClass_Type) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) |
751 | #define PyInt_Check(x)((((x)->ob_type)->tp_flags & ((1L<<23))) != 0 ) PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<< 24))) != 0) |
752 | #define PyInt_AsLong(x) PyLong_AsLong(x) |
753 | #define PyInt_FromLong(x) PyLong_FromLong(x) |
754 | #define PyInt_FromSize_t(x) PyLong_FromSize_t(x) |
755 | #define PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0) PyBytes_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0) |
756 | #define PyString_FromString(x) PyUnicode_FromStringPyUnicodeUCS2_FromString(x) |
757 | #define PyString_Format(fmt, args) PyUnicode_FormatPyUnicodeUCS2_Format(fmt, args) |
758 | #define PyString_AsString(str) PyBytes_AsStringPyString_AsString(str) |
759 | #define PyString_Size(str) PyBytes_SizePyString_Size(str) |
760 | #define PyString_InternFromString(key) PyUnicode_InternFromString(key) |
761 | #define Py_TPFLAGS_HAVE_CLASS(1L<<8) Py_TPFLAGS_BASETYPE(1L<<10) |
762 | #define PyString_AS_STRING(x)(((PyStringObject *)(x))->ob_sval) PyUnicode_AS_STRING(x) |
763 | #define _PyLong_FromSsize_tPyLong_FromSsize_t(x) PyLong_FromSsize_t(x) |
764 | |
765 | #endif |
766 | |
767 | #ifndef Py_TYPE |
768 | # define Py_TYPE(op)(((PyObject*)(op))->ob_type) ((op)->ob_type) |
769 | #endif |
770 | |
771 | /* SWIG APIs for compatibility of both Python 2 & 3 */ |
772 | |
773 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
774 | # define SWIG_Python_str_FromFormatPyString_FromFormat PyUnicode_FromFormatPyUnicodeUCS2_FromFormat |
775 | #else |
776 | # define SWIG_Python_str_FromFormatPyString_FromFormat PyString_FromFormat |
777 | #endif |
778 | |
779 | |
780 | /* Warning: This function will allocate a new string in Python 3, |
781 | * so please call SWIG_Python_str_DelForPy3(x) to free the space. |
782 | */ |
783 | SWIGINTERNstatic __attribute__ ((__unused__)) char* |
784 | SWIG_Python_str_AsChar(PyObject *str) |
785 | { |
786 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
787 | char *cstr; |
788 | char *newstr; |
789 | Py_ssize_t len; |
790 | str = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(str); |
791 | PyBytes_AsStringAndSizePyString_AsStringAndSize(str, &cstr, &len); |
792 | newstr = (char *) malloc(len+1); |
793 | memcpy(newstr, cstr, len+1); |
794 | Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (str)))); } while (0); } while (0); |
795 | return newstr; |
796 | #else |
797 | return PyString_AsString(str); |
798 | #endif |
799 | } |
800 | |
801 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
802 | # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) |
803 | #else |
804 | # define SWIG_Python_str_DelForPy3(x) |
805 | #endif |
806 | |
807 | |
808 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
809 | SWIG_Python_str_FromChar(const char *c) |
810 | { |
811 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
812 | return PyUnicode_FromStringPyUnicodeUCS2_FromString(c); |
813 | #else |
814 | return PyString_FromString(c); |
815 | #endif |
816 | } |
817 | |
818 | /* Add PyOS_snprintf for old Pythons */ |
819 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
820 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) |
821 | # define PyOS_snprintf _snprintf |
822 | # else |
823 | # define PyOS_snprintf snprintf |
824 | # endif |
825 | #endif |
826 | |
827 | /* A crude PyString_FromFormat implementation for old Pythons */ |
828 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
829 | |
830 | #ifndef SWIG_PYBUFFER_SIZE |
831 | # define SWIG_PYBUFFER_SIZE 1024 |
832 | #endif |
833 | |
834 | static PyObject * |
835 | PyString_FromFormat(const char *fmt, ...) { |
836 | va_list ap; |
837 | char buf[SWIG_PYBUFFER_SIZE * 2]; |
838 | int res; |
839 | va_start(ap, fmt)__builtin_va_start(ap, fmt); |
840 | res = vsnprintf(buf, sizeof(buf), fmt, ap); |
841 | va_end(ap)__builtin_va_end(ap); |
842 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); |
843 | } |
844 | #endif |
845 | |
846 | /* Add PyObject_Del for old Pythons */ |
847 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x01060000 |
848 | # define PyObject_DelPyObject_Free(op) PyMem_DELfree((op)) |
849 | #endif |
850 | #ifndef PyObject_DELPyObject_Free |
851 | # define PyObject_DELPyObject_Free PyObject_DelPyObject_Free |
852 | #endif |
853 | |
854 | /* A crude PyExc_StopIteration exception for old Pythons */ |
855 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
856 | # ifndef PyExc_StopIteration |
857 | # define PyExc_StopIteration PyExc_RuntimeError |
858 | # endif |
859 | # ifndef PyObject_GenericGetAttr |
860 | # define PyObject_GenericGetAttr 0 |
861 | # endif |
862 | #endif |
863 | |
864 | /* Py_NotImplemented is defined in 2.1 and up. */ |
865 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02010000 |
866 | # ifndef Py_NotImplemented(&_Py_NotImplementedStruct) |
867 | # define Py_NotImplemented(&_Py_NotImplementedStruct) PyExc_RuntimeError |
868 | # endif |
869 | #endif |
870 | |
871 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ |
872 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02010000 |
873 | # ifndef PyString_AsStringAndSize |
874 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} |
875 | # endif |
876 | #endif |
877 | |
878 | /* PySequence_Size for old Pythons */ |
879 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02000000 |
880 | # ifndef PySequence_Size |
881 | # define PySequence_Size PySequence_LengthPySequence_Size |
882 | # endif |
883 | #endif |
884 | |
885 | /* PyBool_FromLong for old Pythons */ |
886 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
887 | static |
888 | PyObject *PyBool_FromLong(long ok) |
889 | { |
890 | PyObject *result = ok ? Py_True((PyObject *) &_Py_TrueStruct) : Py_False((PyObject *) &_Py_ZeroStruct); |
891 | Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++); |
892 | return result; |
893 | } |
894 | #endif |
895 | |
896 | /* Py_ssize_t for old Pythons */ |
897 | /* This code is as recommended by: */ |
898 | /* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ |
899 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 && !defined(PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1)) |
900 | typedef int Py_ssize_t; |
901 | # define PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)) INT_MAX2147483647 |
902 | # define PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1) INT_MIN(-2147483647 -1) |
903 | typedef inquiry lenfunc; |
904 | typedef intargfunc ssizeargfunc; |
905 | typedef intintargfunc ssizessizeargfunc; |
906 | typedef intobjargproc ssizeobjargproc; |
907 | typedef intintobjargproc ssizessizeobjargproc; |
908 | typedef getreadbufferproc readbufferproc; |
909 | typedef getwritebufferproc writebufferproc; |
910 | typedef getsegcountproc segcountproc; |
911 | typedef getcharbufferproc charbufferproc; |
912 | static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) |
913 | { |
914 | long result = 0; |
915 | PyObject *i = PyNumber_Int(x); |
916 | if (i) { |
917 | result = PyInt_AsLong(i); |
918 | Py_DECREF(i)do { if ( --((PyObject*)(i))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(i)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(i)))); } while (0); |
919 | } |
920 | return result; |
921 | } |
922 | #endif |
923 | |
924 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 |
925 | #define PyInt_FromSize_t(x) PyInt_FromLong((long)x) |
926 | #endif |
927 | |
928 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02040000 |
929 | #define Py_VISIT(op)do { if (op) { int vret = visit((PyObject *)(op), arg); if (vret ) return vret; } } while (0) \ |
930 | do { \ |
931 | if (op) { \ |
932 | int vret = visit((op), arg); \ |
933 | if (vret) \ |
934 | return vret; \ |
935 | } \ |
936 | } while (0) |
937 | #endif |
938 | |
939 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
940 | typedef struct { |
941 | PyTypeObject type; |
942 | PyNumberMethods as_number; |
943 | PyMappingMethods as_mapping; |
944 | PySequenceMethods as_sequence; |
945 | PyBufferProcs as_buffer; |
946 | PyObject *name, *slots; |
947 | } PyHeapTypeObject; |
948 | #endif |
949 | |
950 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
951 | typedef destructor freefunc; |
952 | #endif |
953 | |
954 | #if ((PY_MAJOR_VERSION2 == 2 && PY_MINOR_VERSION7 > 6) || \ |
955 | (PY_MAJOR_VERSION2 == 3 && PY_MINOR_VERSION7 > 0) || \ |
956 | (PY_MAJOR_VERSION2 > 3)) |
957 | # define SWIGPY_USE_CAPSULE |
958 | # define SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ) ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4" ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) |
959 | #endif |
960 | |
961 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03020000 |
962 | #define PyDescr_TYPE(x)(((PyDescrObject *)(x))->d_type) (((PyDescrObject *)(x))->d_type) |
963 | #define PyDescr_NAME(x)(((PyDescrObject *)(x))->d_name) (((PyDescrObject *)(x))->d_name) |
964 | #endif |
965 | |
966 | /* ----------------------------------------------------------------------------- |
967 | * error manipulation |
968 | * ----------------------------------------------------------------------------- */ |
969 | |
970 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
971 | SWIG_Python_ErrorType(int code) { |
972 | PyObject* type = 0; |
973 | switch(code) { |
974 | case SWIG_MemoryError-12: |
975 | type = PyExc_MemoryError; |
976 | break; |
977 | case SWIG_IOError-2: |
978 | type = PyExc_IOError; |
979 | break; |
980 | case SWIG_RuntimeError-3: |
981 | type = PyExc_RuntimeError; |
982 | break; |
983 | case SWIG_IndexError-4: |
984 | type = PyExc_IndexError; |
985 | break; |
986 | case SWIG_TypeError-5: |
987 | type = PyExc_TypeError; |
988 | break; |
989 | case SWIG_DivisionByZero-6: |
990 | type = PyExc_ZeroDivisionError; |
991 | break; |
992 | case SWIG_OverflowError-7: |
993 | type = PyExc_OverflowError; |
994 | break; |
995 | case SWIG_SyntaxError-8: |
996 | type = PyExc_SyntaxError; |
997 | break; |
998 | case SWIG_ValueError-9: |
999 | type = PyExc_ValueError; |
1000 | break; |
1001 | case SWIG_SystemError-10: |
1002 | type = PyExc_SystemError; |
1003 | break; |
1004 | case SWIG_AttributeError-11: |
1005 | type = PyExc_AttributeError; |
1006 | break; |
1007 | default: |
1008 | type = PyExc_RuntimeError; |
1009 | } |
1010 | return type; |
1011 | } |
1012 | |
1013 | |
1014 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1015 | SWIG_Python_AddErrorMsg(const char* mesg) |
1016 | { |
1017 | PyObject *type = 0; |
1018 | PyObject *value = 0; |
1019 | PyObject *traceback = 0; |
1020 | |
1021 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); |
1022 | if (value) { |
1023 | char *tmp; |
1024 | PyObject *old_str = PyObject_Str(value); |
1025 | PyErr_Clear(); |
1026 | Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt ++); } while (0); |
1027 | |
1028 | PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); |
1029 | SWIG_Python_str_DelForPy3(tmp); |
1030 | Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(old_str)))); } while (0); |
1031 | Py_DECREF(value)do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(value)))); } while (0); |
1032 | } else { |
1033 | PyErr_SetString(PyExc_RuntimeError, mesg); |
1034 | } |
1035 | } |
1036 | |
1037 | #if defined(SWIG_PYTHON_NO_THREADS) |
1038 | # if defined(SWIG_PYTHON_THREADS) |
1039 | # undef SWIG_PYTHON_THREADS |
1040 | # endif |
1041 | #endif |
1042 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ |
1043 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) |
1044 | # if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ |
1045 | # define SWIG_PYTHON_USE_GIL |
1046 | # endif |
1047 | # endif |
1048 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ |
1049 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS |
1050 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() |
1051 | # endif |
1052 | # ifdef __cplusplus199711L /* C++ code */ |
1053 | class SWIG_Python_Thread_Block { |
1054 | bool status; |
1055 | PyGILState_STATE state; |
1056 | public: |
1057 | void end() { if (status) { PyGILState_Release(state); status = false;} } |
1058 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} |
1059 | ~SWIG_Python_Thread_Block() { end(); } |
1060 | }; |
1061 | class SWIG_Python_Thread_Allow { |
1062 | bool status; |
1063 | PyThreadState *save; |
1064 | public: |
1065 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} |
1066 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} |
1067 | ~SWIG_Python_Thread_Allow() { end(); } |
1068 | }; |
1069 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block |
1070 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() |
1071 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow |
1072 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() |
1073 | # else /* C code */ |
1074 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() |
1075 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) |
1076 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() |
1077 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) |
1078 | # endif |
1079 | # else /* Old thread way, not implemented, user must provide it */ |
1080 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) |
1081 | # define SWIG_PYTHON_INITIALIZE_THREADS |
1082 | # endif |
1083 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) |
1084 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK |
1085 | # endif |
1086 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) |
1087 | # define SWIG_PYTHON_THREAD_END_BLOCK |
1088 | # endif |
1089 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) |
1090 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW |
1091 | # endif |
1092 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) |
1093 | # define SWIG_PYTHON_THREAD_END_ALLOW |
1094 | # endif |
1095 | # endif |
1096 | #else /* No thread support */ |
1097 | # define SWIG_PYTHON_INITIALIZE_THREADS |
1098 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK |
1099 | # define SWIG_PYTHON_THREAD_END_BLOCK |
1100 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW |
1101 | # define SWIG_PYTHON_THREAD_END_ALLOW |
1102 | #endif |
1103 | |
1104 | /* ----------------------------------------------------------------------------- |
1105 | * Python API portion that goes into the runtime |
1106 | * ----------------------------------------------------------------------------- */ |
1107 | |
1108 | #ifdef __cplusplus199711L |
1109 | extern "C" { |
1110 | #endif |
1111 | |
1112 | /* ----------------------------------------------------------------------------- |
1113 | * Constant declarations |
1114 | * ----------------------------------------------------------------------------- */ |
1115 | |
1116 | /* Constant Types */ |
1117 | #define SWIG_PY_POINTER4 4 |
1118 | #define SWIG_PY_BINARY5 5 |
1119 | |
1120 | /* Constant information structure */ |
1121 | typedef struct swig_const_info { |
1122 | int type; |
1123 | char *name; |
1124 | long lvalue; |
1125 | double dvalue; |
1126 | void *pvalue; |
1127 | swig_type_info **ptype; |
1128 | } swig_const_info; |
1129 | |
1130 | |
1131 | /* ----------------------------------------------------------------------------- |
1132 | * Wrapper of PyInstanceMethod_New() used in Python 3 |
1133 | * It is exported to the generated module, used for -fastproxy |
1134 | * ----------------------------------------------------------------------------- */ |
1135 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1136 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) |
1137 | { |
1138 | return PyInstanceMethod_New(func); |
1139 | } |
1140 | #else |
1141 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) |
1142 | { |
1143 | return NULL__null; |
1144 | } |
1145 | #endif |
1146 | |
1147 | #ifdef __cplusplus199711L |
1148 | } |
1149 | #endif |
1150 | |
1151 | |
1152 | /* ----------------------------------------------------------------------------- |
1153 | * pyrun.swg |
1154 | * |
1155 | * This file contains the runtime support for Python modules |
1156 | * and includes code for managing global variables and pointer |
1157 | * type checking. |
1158 | * |
1159 | * ----------------------------------------------------------------------------- */ |
1160 | |
1161 | /* Common SWIG API */ |
1162 | |
1163 | /* for raw pointers */ |
1164 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1165 | #define SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1166 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) |
1167 | |
1168 | #ifdef SWIGPYTHON_BUILTIN |
1169 | #define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) |
1170 | #else |
1171 | #define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags) |
1172 | #endif |
1173 | |
1174 | #define SWIG_InternalNewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags) |
1175 | |
1176 | #define SWIG_CheckImplicit(ty)SWIG_Python_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) |
1177 | #define SWIG_AcquirePtr(ptr, src)SWIG_Python_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) |
1178 | #define swig_owntypeint int |
1179 | |
1180 | /* for raw packed data */ |
1181 | #define SWIG_ConvertPacked(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) |
1182 | #define SWIG_NewPackedObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) |
1183 | |
1184 | /* for class or struct pointers */ |
1185 | #define SWIG_ConvertInstance(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1186 | #define SWIG_NewInstanceObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) |
1187 | |
1188 | /* for C or C++ function pointers */ |
1189 | #define SWIG_ConvertFunctionPtr(obj, pptr, type)SWIG_Python_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) |
1190 | #define SWIG_NewFunctionPtrObj(ptr, type)SWIG_Python_NewPointerObj(__null, ptr, type, 0) SWIG_Python_NewPointerObj(NULL__null, ptr, type, 0) |
1191 | |
1192 | /* for C++ member pointers, ie, member methods */ |
1193 | #define SWIG_ConvertMember(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) |
1194 | #define SWIG_NewMemberObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) |
1195 | |
1196 | |
1197 | /* Runtime API */ |
1198 | |
1199 | #define SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata) SWIG_Python_GetModule(clientdata) |
1200 | #define SWIG_SetModule(clientdata, pointer)SWIG_Python_SetModule(pointer) SWIG_Python_SetModule(pointer) |
1201 | #define SWIG_NewClientData(obj)SwigPyClientData_New(obj) SwigPyClientData_New(obj) |
1202 | |
1203 | #define SWIG_SetErrorObjSWIG_Python_SetErrorObj SWIG_Python_SetErrorObj |
1204 | #define SWIG_SetErrorMsgSWIG_Python_SetErrorMsg SWIG_Python_SetErrorMsg |
1205 | #define SWIG_ErrorType(code)SWIG_Python_ErrorType(code) SWIG_Python_ErrorType(code) |
1206 | #define SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code)SWIG_Python_ErrorType(code), msg) |
1207 | #define SWIG_failgoto fail goto fail |
1208 | |
1209 | |
1210 | /* Runtime API implementation */ |
1211 | |
1212 | /* Error manipulation */ |
1213 | |
1214 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1215 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { |
1216 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; |
1217 | PyErr_SetObject(errtype, obj); |
1218 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1219 | SWIG_PYTHON_THREAD_END_BLOCK; |
1220 | } |
1221 | |
1222 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1223 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { |
1224 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; |
1225 | PyErr_SetString(errtype, msg); |
1226 | SWIG_PYTHON_THREAD_END_BLOCK; |
1227 | } |
1228 | |
1229 | #define SWIG_Python_Raise(obj, type, desc)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
1230 | |
1231 | /* Set a constant value */ |
1232 | |
1233 | #if defined(SWIGPYTHON_BUILTIN) |
1234 | |
1235 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1236 | SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { |
1237 | PyObject *s = PyString_InternFromString(key); |
1238 | PyList_Append(seq, s); |
1239 | Py_DECREF(s)do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(s)))); } while (0); |
1240 | } |
1241 | |
1242 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1243 | SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { |
1244 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
1245 | PyDict_SetItemString(d, (char *)name, obj); |
1246 | #else |
1247 | PyDict_SetItemString(d, name, obj); |
1248 | #endif |
1249 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1250 | if (public_interface) |
1251 | SwigPyBuiltin_AddPublicSymbol(public_interface, name); |
1252 | } |
1253 | |
1254 | #else |
1255 | |
1256 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1257 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { |
1258 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
1259 | PyDict_SetItemString(d, (char *)name, obj); |
1260 | #else |
1261 | PyDict_SetItemString(d, name, obj); |
1262 | #endif |
1263 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1264 | } |
1265 | |
1266 | #endif |
1267 | |
1268 | /* Append a value to the result obj */ |
1269 | |
1270 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1271 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { |
1272 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) |
1273 | if (!result) { |
1274 | result = obj; |
1275 | } else if (result == Py_None(&_Py_NoneStruct)) { |
1276 | Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(result)))); } while (0); |
1277 | result = obj; |
1278 | } else { |
1279 | if (!PyList_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & (( 1L<<25))) != 0)) { |
1280 | PyObject *o2 = result; |
1281 | result = PyList_New(1); |
1282 | PyList_SetItem(result, 0, o2); |
1283 | } |
1284 | PyList_Append(result,obj); |
1285 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1286 | } |
1287 | return result; |
1288 | #else |
1289 | PyObject* o2; |
1290 | PyObject* o3; |
1291 | if (!result) { |
1292 | result = obj; |
1293 | } else if (result == Py_None(&_Py_NoneStruct)) { |
1294 | Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(result)))); } while (0); |
1295 | result = obj; |
1296 | } else { |
1297 | if (!PyTuple_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & (( 1L<<26))) != 0)) { |
1298 | o2 = result; |
1299 | result = PyTuple_New(1); |
1300 | PyTuple_SET_ITEM(result, 0, o2)(((PyTupleObject *)(result))->ob_item[0] = o2); |
1301 | } |
1302 | o3 = PyTuple_New(1); |
1303 | PyTuple_SET_ITEM(o3, 0, obj)(((PyTupleObject *)(o3))->ob_item[0] = obj); |
1304 | o2 = result; |
1305 | result = PySequence_Concat(o2, o3); |
1306 | Py_DECREF(o2)do { if ( --((PyObject*)(o2))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(o2)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(o2)))); } while (0); |
1307 | Py_DECREF(o3)do { if ( --((PyObject*)(o3))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(o3)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(o3)))); } while (0); |
1308 | } |
1309 | return result; |
1310 | #endif |
1311 | } |
1312 | |
1313 | /* Unpack the argument tuple */ |
1314 | |
1315 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
1316 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) |
1317 | { |
1318 | if (!args) { |
1319 | if (!min && !max) { |
1320 | return 1; |
1321 | } else { |
1322 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", |
1323 | name, (min == max ? "" : "at least "), (int)min); |
1324 | return 0; |
1325 | } |
1326 | } |
1327 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) { |
1328 | if (min <= 1 && max >= 1) { |
1329 | register int i; |
1330 | objs[0] = args; |
1331 | for (i = 1; i < max; ++i) { |
1332 | objs[i] = 0; |
1333 | } |
1334 | return 2; |
1335 | } |
1336 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); |
1337 | return 0; |
1338 | } else { |
1339 | register Py_ssize_t l = PyTuple_GET_SIZE(args)(((PyVarObject*)(args))->ob_size); |
1340 | if (l < min) { |
1341 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", |
1342 | name, (min == max ? "" : "at least "), (int)min, (int)l); |
1343 | return 0; |
1344 | } else if (l > max) { |
1345 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", |
1346 | name, (min == max ? "" : "at most "), (int)max, (int)l); |
1347 | return 0; |
1348 | } else { |
1349 | register int i; |
1350 | for (i = 0; i < l; ++i) { |
1351 | objs[i] = PyTuple_GET_ITEM(args, i)(((PyTupleObject *)(args))->ob_item[i]); |
1352 | } |
1353 | for (; l < max; ++l) { |
1354 | objs[l] = 0; |
1355 | } |
1356 | return i + 1; |
1357 | } |
1358 | } |
1359 | } |
1360 | |
1361 | /* A functor is a function object with one single object argument */ |
1362 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
1363 | #define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunctionObjArgs(functor, obj, NULL__null); |
1364 | #else |
1365 | #define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunction(functor, "O", obj); |
1366 | #endif |
1367 | |
1368 | /* |
1369 | Helper for static pointer initialization for both C and C++ code, for example |
1370 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); |
1371 | */ |
1372 | #ifdef __cplusplus199711L |
1373 | #define SWIG_STATIC_POINTER(var)var var |
1374 | #else |
1375 | #define SWIG_STATIC_POINTER(var)var var = 0; if (!var) var |
1376 | #endif |
1377 | |
1378 | /* ----------------------------------------------------------------------------- |
1379 | * Pointer declarations |
1380 | * ----------------------------------------------------------------------------- */ |
1381 | |
1382 | /* Flags for new pointer objects */ |
1383 | #define SWIG_POINTER_NOSHADOW(0x1 << 1) (SWIG_POINTER_OWN0x1 << 1) |
1384 | #define SWIG_POINTER_NEW((0x1 << 1) | 0x1) (SWIG_POINTER_NOSHADOW(0x1 << 1) | SWIG_POINTER_OWN0x1) |
1385 | |
1386 | #define SWIG_POINTER_IMPLICIT_CONV(0x1 << 1) (SWIG_POINTER_DISOWN0x1 << 1) |
1387 | |
1388 | #define SWIG_BUILTIN_TP_INIT(0x1 << 2) (SWIG_POINTER_OWN0x1 << 2) |
1389 | #define SWIG_BUILTIN_INIT((0x1 << 2) | 0x1) (SWIG_BUILTIN_TP_INIT(0x1 << 2) | SWIG_POINTER_OWN0x1) |
1390 | |
1391 | #ifdef __cplusplus199711L |
1392 | extern "C" { |
1393 | #endif |
1394 | |
1395 | /* How to access Py_None */ |
1396 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
1397 | # ifndef SWIG_PYTHON_NO_BUILD_NONE |
1398 | # ifndef SWIG_PYTHON_BUILD_NONE |
1399 | # define SWIG_PYTHON_BUILD_NONE |
1400 | # endif |
1401 | # endif |
1402 | #endif |
1403 | |
1404 | #ifdef SWIG_PYTHON_BUILD_NONE |
1405 | # ifdef Py_None(&_Py_NoneStruct) |
1406 | # undef Py_None(&_Py_NoneStruct) |
1407 | # define Py_None(&_Py_NoneStruct) SWIG_Py_None() |
1408 | # endif |
1409 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1410 | _SWIG_Py_None(void) |
1411 | { |
1412 | PyObject *none = Py_BuildValue((char*)""); |
1413 | Py_DECREF(none)do { if ( --((PyObject*)(none))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(none)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(none)))); } while (0); |
1414 | return none; |
1415 | } |
1416 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1417 | SWIG_Py_None(void) |
1418 | { |
1419 | static PyObject *SWIG_STATIC_POINTER(none)none = _SWIG_Py_None(); |
1420 | return none; |
1421 | } |
1422 | #endif |
1423 | |
1424 | /* The python void return value */ |
1425 | |
1426 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1427 | SWIG_Py_Void(void) |
1428 | { |
1429 | PyObject *none = Py_None(&_Py_NoneStruct); |
1430 | Py_INCREF(none)( ((PyObject*)(none))->ob_refcnt++); |
1431 | return none; |
1432 | } |
1433 | |
1434 | /* SwigPyClientData */ |
1435 | |
1436 | typedef struct { |
1437 | PyObject *klass; |
1438 | PyObject *newraw; |
1439 | PyObject *newargs; |
1440 | PyObject *destroy; |
1441 | int delargs; |
1442 | int implicitconv; |
1443 | PyTypeObject *pytype; |
1444 | } SwigPyClientData; |
1445 | |
1446 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
1447 | SWIG_Python_CheckImplicit(swig_type_info *ty) |
1448 | { |
1449 | SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; |
1450 | return data ? data->implicitconv : 0; |
1451 | } |
1452 | |
1453 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1454 | SWIG_Python_ExceptionType(swig_type_info *desc) { |
1455 | SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; |
1456 | PyObject *klass = data ? data->klass : 0; |
1457 | return (klass ? klass : PyExc_RuntimeError); |
1458 | } |
1459 | |
1460 | |
1461 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData * |
1462 | SwigPyClientData_New(PyObject* obj) |
1463 | { |
1464 | if (!obj) { |
1465 | return 0; |
1466 | } else { |
1467 | SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); |
1468 | /* the klass element */ |
1469 | data->klass = obj; |
1470 | Py_INCREF(data->klass)( ((PyObject*)(data->klass))->ob_refcnt++); |
1471 | /* the newraw method and newargs arguments used to create a new raw instance */ |
1472 | if (PyClass_Check(obj)((obj)->ob_type == &PyClass_Type)) { |
1473 | data->newraw = 0; |
1474 | data->newargs = obj; |
1475 | Py_INCREF(obj)( ((PyObject*)(obj))->ob_refcnt++); |
1476 | } else { |
1477 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000) |
1478 | data->newraw = 0; |
1479 | #else |
1480 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); |
1481 | #endif |
1482 | if (data->newraw) { |
1483 | Py_INCREF(data->newraw)( ((PyObject*)(data->newraw))->ob_refcnt++); |
1484 | data->newargs = PyTuple_New(1); |
1485 | PyTuple_SetItem(data->newargs, 0, obj); |
1486 | } else { |
1487 | data->newargs = obj; |
1488 | } |
1489 | Py_INCREF(data->newargs)( ((PyObject*)(data->newargs))->ob_refcnt++); |
1490 | } |
1491 | /* the destroy method, aka as the C++ delete method */ |
1492 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); |
1493 | if (PyErr_Occurred()) { |
1494 | PyErr_Clear(); |
1495 | data->destroy = 0; |
1496 | } |
1497 | if (data->destroy) { |
1498 | int flags; |
1499 | Py_INCREF(data->destroy)( ((PyObject*)(data->destroy))->ob_refcnt++); |
1500 | flags = PyCFunction_GET_FLAGS(data->destroy)(((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags ); |
1501 | #ifdef METH_O0x0008 |
1502 | data->delargs = !(flags & (METH_O0x0008)); |
1503 | #else |
1504 | data->delargs = 0; |
1505 | #endif |
1506 | } else { |
1507 | data->delargs = 0; |
1508 | } |
1509 | data->implicitconv = 0; |
1510 | data->pytype = 0; |
1511 | return data; |
1512 | } |
1513 | } |
1514 | |
1515 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1516 | SwigPyClientData_Del(SwigPyClientData *data) { |
1517 | Py_XDECREF(data->newraw)do { if ((data->newraw) == __null) ; else do { if ( --((PyObject *)(data->newraw))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(data->newraw)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(data->newraw)))); } while (0); } while (0); |
1518 | Py_XDECREF(data->newargs)do { if ((data->newargs) == __null) ; else do { if ( --((PyObject *)(data->newargs))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(data->newargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(data->newargs)))); } while (0) ; } while (0); |
1519 | Py_XDECREF(data->destroy)do { if ((data->destroy) == __null) ; else do { if ( --((PyObject *)(data->destroy))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(data->destroy)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(data->destroy)))); } while (0) ; } while (0); |
1520 | } |
1521 | |
1522 | /* =============== SwigPyObject =====================*/ |
1523 | |
1524 | typedef struct { |
1525 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
1526 | void *ptr; |
1527 | swig_type_info *ty; |
1528 | int own; |
1529 | PyObject *next; |
1530 | #ifdef SWIGPYTHON_BUILTIN |
1531 | PyObject *dict; |
1532 | #endif |
1533 | } SwigPyObject; |
1534 | |
1535 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1536 | SwigPyObject_long(SwigPyObject *v) |
1537 | { |
1538 | return PyLong_FromVoidPtr(v->ptr); |
1539 | } |
1540 | |
1541 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1542 | SwigPyObject_format(const char* fmt, SwigPyObject *v) |
1543 | { |
1544 | PyObject *res = NULL__null; |
1545 | PyObject *args = PyTuple_New(1); |
1546 | if (args) { |
1547 | if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { |
1548 | PyObject *ofmt = SWIG_Python_str_FromChar(fmt); |
1549 | if (ofmt) { |
1550 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1551 | res = PyUnicode_FormatPyUnicodeUCS2_Format(ofmt,args); |
1552 | #else |
1553 | res = PyString_Format(ofmt,args); |
1554 | #endif |
1555 | Py_DECREF(ofmt)do { if ( --((PyObject*)(ofmt))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(ofmt)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(ofmt)))); } while (0); |
1556 | } |
1557 | Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(args)))); } while (0); |
1558 | } |
1559 | } |
1560 | return res; |
1561 | } |
1562 | |
1563 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1564 | SwigPyObject_oct(SwigPyObject *v) |
1565 | { |
1566 | return SwigPyObject_format("%o",v); |
1567 | } |
1568 | |
1569 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1570 | SwigPyObject_hex(SwigPyObject *v) |
1571 | { |
1572 | return SwigPyObject_format("%x",v); |
1573 | } |
1574 | |
1575 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1576 | #ifdef METH_NOARGS0x0004 |
1577 | SwigPyObject_repr(SwigPyObject *v) |
1578 | #else |
1579 | SwigPyObject_repr(SwigPyObject *v, PyObject *args) |
1580 | #endif |
1581 | { |
1582 | const char *name = SWIG_TypePrettyName(v->ty); |
1583 | PyObject *repr = SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v); |
1584 | if (v->next) { |
1585 | # ifdef METH_NOARGS0x0004 |
1586 | PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); |
1587 | # else |
1588 | PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); |
1589 | # endif |
1590 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1591 | PyObject *joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(repr, nrep); |
1592 | Py_DecRef(repr); |
1593 | Py_DecRef(nrep); |
1594 | repr = joined; |
1595 | # else |
1596 | PyString_ConcatAndDel(&repr,nrep); |
1597 | # endif |
1598 | } |
1599 | return repr; |
1600 | } |
1601 | |
1602 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
1603 | SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) |
1604 | { |
1605 | void *i = v->ptr; |
1606 | void *j = w->ptr; |
1607 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
1608 | } |
1609 | |
1610 | /* Added for Python 3.x, would it also be useful for Python 2.x? */ |
1611 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1612 | SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) |
1613 | { |
1614 | PyObject* res; |
1615 | if( op != Py_EQ2 && op != Py_NE3 ) { |
1616 | Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt ++); |
1617 | return Py_NotImplemented(&_Py_NotImplementedStruct); |
1618 | } |
1619 | res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ2) ? 1 : 0); |
1620 | return res; |
1621 | } |
1622 | |
1623 | |
1624 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void); |
1625 | |
1626 | #ifdef SWIGPYTHON_BUILTIN |
1627 | static swig_type_info *SwigPyObject_stype = 0; |
1628 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1629 | SwigPyObject_type(void) { |
1630 | SwigPyClientData *cd; |
1631 | assert(SwigPyObject_stype)((void)0); |
1632 | cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; |
1633 | assert(cd)((void)0); |
1634 | assert(cd->pytype)((void)0); |
1635 | return cd->pytype; |
1636 | } |
1637 | #else |
1638 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1639 | SwigPyObject_type(void) { |
1640 | static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce(); |
1641 | return type; |
1642 | } |
1643 | #endif |
1644 | |
1645 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
1646 | SwigPyObject_Check(PyObject *op) { |
1647 | #ifdef SWIGPYTHON_BUILTIN |
1648 | PyTypeObject *target_tp = SwigPyObject_type(); |
1649 | if (PyType_IsSubtype(op->ob_type, target_tp)) |
1650 | return 1; |
1651 | return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); |
1652 | #else |
1653 | return (Py_TYPE(op)(((PyObject*)(op))->ob_type) == SwigPyObject_type()) |
1654 | || (strcmp(Py_TYPE(op)(((PyObject*)(op))->ob_type)->tp_name,"SwigPyObject") == 0); |
1655 | #endif |
1656 | } |
1657 | |
1658 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1659 | SwigPyObject_New(void *ptr, swig_type_info *ty, int own); |
1660 | |
1661 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1662 | SwigPyObject_dealloc(PyObject *v) |
1663 | { |
1664 | SwigPyObject *sobj = (SwigPyObject *) v; |
1665 | PyObject *next = sobj->next; |
1666 | if (sobj->own == SWIG_POINTER_OWN0x1) { |
1667 | swig_type_info *ty = sobj->ty; |
1668 | SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; |
1669 | PyObject *destroy = data ? data->destroy : 0; |
1670 | if (destroy) { |
1671 | /* destroy is always a VARARGS method */ |
1672 | PyObject *res; |
1673 | if (data->delargs) { |
1674 | /* we need to create a temporary object to carry the destroy operation */ |
1675 | PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); |
1676 | res = SWIG_Python_CallFunctor(destroy, tmp)PyObject_CallFunctionObjArgs(destroy, tmp, __null);; |
1677 | Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0); |
1678 | } else { |
1679 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_meth); |
1680 | PyObject *mself = PyCFunction_GET_SELF(destroy)(((PyCFunctionObject *)destroy) -> m_self); |
1681 | res = ((*meth)(mself, v)); |
1682 | } |
1683 | Py_XDECREF(res)do { if ((res) == __null) ; else do { if ( --((PyObject*)(res ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (res)))); } while (0); } while (0); |
1684 | } |
1685 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) |
1686 | else { |
1687 | const char *name = SWIG_TypePrettyName(ty); |
1688 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); |
1689 | } |
1690 | #endif |
1691 | } |
1692 | Py_XDECREF(next)do { if ((next) == __null) ; else do { if ( --((PyObject*)(next ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(next)))); } while (0); } while (0); |
1693 | PyObject_DELPyObject_Free(v); |
1694 | } |
1695 | |
1696 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1697 | SwigPyObject_append(PyObject* v, PyObject* next) |
1698 | { |
1699 | SwigPyObject *sobj = (SwigPyObject *) v; |
1700 | #ifndef METH_O0x0008 |
1701 | PyObject *tmp = 0; |
1702 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL__null; |
1703 | next = tmp; |
1704 | #endif |
1705 | if (!SwigPyObject_Check(next)) { |
1706 | return NULL__null; |
1707 | } |
1708 | sobj->next = next; |
1709 | Py_INCREF(next)( ((PyObject*)(next))->ob_refcnt++); |
1710 | return SWIG_Py_Void(); |
1711 | } |
1712 | |
1713 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1714 | #ifdef METH_NOARGS0x0004 |
1715 | SwigPyObject_next(PyObject* v) |
1716 | #else |
1717 | SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1718 | #endif |
1719 | { |
1720 | SwigPyObject *sobj = (SwigPyObject *) v; |
1721 | if (sobj->next) { |
1722 | Py_INCREF(sobj->next)( ((PyObject*)(sobj->next))->ob_refcnt++); |
1723 | return sobj->next; |
1724 | } else { |
1725 | return SWIG_Py_Void(); |
1726 | } |
1727 | } |
1728 | |
1729 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1730 | #ifdef METH_NOARGS0x0004 |
1731 | SwigPyObject_disown(PyObject *v) |
1732 | #else |
1733 | SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1734 | #endif |
1735 | { |
1736 | SwigPyObject *sobj = (SwigPyObject *)v; |
1737 | sobj->own = 0; |
1738 | return SWIG_Py_Void(); |
1739 | } |
1740 | |
1741 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1742 | #ifdef METH_NOARGS0x0004 |
1743 | SwigPyObject_acquire(PyObject *v) |
1744 | #else |
1745 | SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1746 | #endif |
1747 | { |
1748 | SwigPyObject *sobj = (SwigPyObject *)v; |
1749 | sobj->own = SWIG_POINTER_OWN0x1; |
1750 | return SWIG_Py_Void(); |
1751 | } |
1752 | |
1753 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1754 | SwigPyObject_own(PyObject *v, PyObject *args) |
1755 | { |
1756 | PyObject *val = 0; |
1757 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000) |
1758 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) |
1759 | #elif (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000) |
1760 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) |
1761 | #else |
1762 | if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) |
1763 | #endif |
1764 | { |
1765 | return NULL__null; |
1766 | } |
1767 | else |
1768 | { |
1769 | SwigPyObject *sobj = (SwigPyObject *)v; |
1770 | PyObject *obj = PyBool_FromLong(sobj->own); |
1771 | if (val) { |
1772 | #ifdef METH_NOARGS0x0004 |
1773 | if (PyObject_IsTrue(val)) { |
1774 | SwigPyObject_acquire(v); |
1775 | } else { |
1776 | SwigPyObject_disown(v); |
1777 | } |
1778 | #else |
1779 | if (PyObject_IsTrue(val)) { |
1780 | SwigPyObject_acquire(v,args); |
1781 | } else { |
1782 | SwigPyObject_disown(v,args); |
1783 | } |
1784 | #endif |
1785 | } |
1786 | return obj; |
1787 | } |
1788 | } |
1789 | |
1790 | #ifdef METH_O0x0008 |
1791 | static PyMethodDef |
1792 | swigobject_methods[] = { |
1793 | {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS0x0004, (char *)"releases ownership of the pointer"}, |
1794 | {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS0x0004, (char *)"acquires ownership of the pointer"}, |
1795 | {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"}, |
1796 | {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O0x0008, (char *)"appends another 'this' object"}, |
1797 | {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS0x0004, (char *)"returns the next 'this' object"}, |
1798 | {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS0x0004, (char *)"returns object representation"}, |
1799 | {0, 0, 0, 0} |
1800 | }; |
1801 | #else |
1802 | static PyMethodDef |
1803 | swigobject_methods[] = { |
1804 | {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS0x0001, (char *)"releases ownership of the pointer"}, |
1805 | {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS0x0001, (char *)"aquires ownership of the pointer"}, |
1806 | {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"}, |
1807 | {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS0x0001, (char *)"appends another 'this' object"}, |
1808 | {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS0x0001, (char *)"returns the next 'this' object"}, |
1809 | {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS0x0001, (char *)"returns object representation"}, |
1810 | {0, 0, 0, 0} |
1811 | }; |
1812 | #endif |
1813 | |
1814 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1815 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
1816 | SwigPyObject_getattr(SwigPyObject *sobj,char *name) |
1817 | { |
1818 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); |
1819 | } |
1820 | #endif |
1821 | |
1822 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1823 | SwigPyObject_TypeOnce(void) { |
1824 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; |
1825 | |
1826 | static PyNumberMethods SwigPyObject_as_number = { |
1827 | (binaryfunc)0, /*nb_add*/ |
1828 | (binaryfunc)0, /*nb_subtract*/ |
1829 | (binaryfunc)0, /*nb_multiply*/ |
1830 | /* nb_divide removed in Python 3 */ |
1831 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1832 | (binaryfunc)0, /*nb_divide*/ |
1833 | #endif |
1834 | (binaryfunc)0, /*nb_remainder*/ |
1835 | (binaryfunc)0, /*nb_divmod*/ |
1836 | (ternaryfunc)0,/*nb_power*/ |
1837 | (unaryfunc)0, /*nb_negative*/ |
1838 | (unaryfunc)0, /*nb_positive*/ |
1839 | (unaryfunc)0, /*nb_absolute*/ |
1840 | (inquiry)0, /*nb_nonzero*/ |
1841 | 0, /*nb_invert*/ |
1842 | 0, /*nb_lshift*/ |
1843 | 0, /*nb_rshift*/ |
1844 | 0, /*nb_and*/ |
1845 | 0, /*nb_xor*/ |
1846 | 0, /*nb_or*/ |
1847 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1848 | 0, /*nb_coerce*/ |
1849 | #endif |
1850 | (unaryfunc)SwigPyObject_long, /*nb_int*/ |
1851 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1852 | (unaryfunc)SwigPyObject_long, /*nb_long*/ |
1853 | #else |
1854 | 0, /*nb_reserved*/ |
1855 | #endif |
1856 | (unaryfunc)0, /*nb_float*/ |
1857 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1858 | (unaryfunc)SwigPyObject_oct, /*nb_oct*/ |
1859 | (unaryfunc)SwigPyObject_hex, /*nb_hex*/ |
1860 | #endif |
1861 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 /* 3.0 */ |
1862 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ |
1863 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02050000 /* 2.5.0 */ |
1864 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ |
1865 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 /* 2.2.0 */ |
1866 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
1867 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02000000 /* 2.0.0 */ |
1868 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ |
1869 | #endif |
1870 | }; |
1871 | |
1872 | static PyTypeObject swigpyobject_type; |
1873 | static int type_init = 0; |
1874 | if (!type_init) { |
1875 | const PyTypeObject tmp = { |
1876 | /* PyObject header changed in Python 3 */ |
1877 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1878 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
1879 | #else |
1880 | PyObject_HEAD_INIT(NULL)1, __null, |
1881 | 0, /* ob_size */ |
1882 | #endif |
1883 | (char *)"SwigPyObject", /* tp_name */ |
1884 | sizeof(SwigPyObject), /* tp_basicsize */ |
1885 | 0, /* tp_itemsize */ |
1886 | (destructor)SwigPyObject_dealloc, /* tp_dealloc */ |
1887 | 0, /* tp_print */ |
1888 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1889 | (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ |
1890 | #else |
1891 | (getattrfunc)0, /* tp_getattr */ |
1892 | #endif |
1893 | (setattrfunc)0, /* tp_setattr */ |
1894 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1895 | 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ |
1896 | #else |
1897 | (cmpfunc)SwigPyObject_compare, /* tp_compare */ |
1898 | #endif |
1899 | (reprfunc)SwigPyObject_repr, /* tp_repr */ |
1900 | &SwigPyObject_as_number, /* tp_as_number */ |
1901 | 0, /* tp_as_sequence */ |
1902 | 0, /* tp_as_mapping */ |
1903 | (hashfunc)0, /* tp_hash */ |
1904 | (ternaryfunc)0, /* tp_call */ |
1905 | 0, /* tp_str */ |
1906 | PyObject_GenericGetAttr, /* tp_getattro */ |
1907 | 0, /* tp_setattro */ |
1908 | 0, /* tp_as_buffer */ |
1909 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0), /* tp_flags */ |
1910 | swigobject_doc, /* tp_doc */ |
1911 | 0, /* tp_traverse */ |
1912 | 0, /* tp_clear */ |
1913 | (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ |
1914 | 0, /* tp_weaklistoffset */ |
1915 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
1916 | 0, /* tp_iter */ |
1917 | 0, /* tp_iternext */ |
1918 | swigobject_methods, /* tp_methods */ |
1919 | 0, /* tp_members */ |
1920 | 0, /* tp_getset */ |
1921 | 0, /* tp_base */ |
1922 | 0, /* tp_dict */ |
1923 | 0, /* tp_descr_get */ |
1924 | 0, /* tp_descr_set */ |
1925 | 0, /* tp_dictoffset */ |
1926 | 0, /* tp_init */ |
1927 | 0, /* tp_alloc */ |
1928 | 0, /* tp_new */ |
1929 | 0, /* tp_free */ |
1930 | 0, /* tp_is_gc */ |
1931 | 0, /* tp_bases */ |
1932 | 0, /* tp_mro */ |
1933 | 0, /* tp_cache */ |
1934 | 0, /* tp_subclasses */ |
1935 | 0, /* tp_weaklist */ |
1936 | #endif |
1937 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
1938 | 0, /* tp_del */ |
1939 | #endif |
1940 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
1941 | 0, /* tp_version */ |
1942 | #endif |
1943 | #ifdef COUNT_ALLOCS |
1944 | 0,0,0,0 /* tp_alloc -> tp_next */ |
1945 | #endif |
1946 | }; |
1947 | swigpyobject_type = tmp; |
1948 | type_init = 1; |
1949 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1950 | swigpyobject_type.ob_type = &PyType_Type; |
1951 | #else |
1952 | if (PyType_Ready(&swigpyobject_type) < 0) |
1953 | return NULL__null; |
1954 | #endif |
1955 | } |
1956 | return &swigpyobject_type; |
1957 | } |
1958 | |
1959 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1960 | SwigPyObject_New(void *ptr, swig_type_info *ty, int own) |
1961 | { |
1962 | SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type())( (SwigPyObject *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (SwigPyObject_type())->tp_basicsize ) ), (SwigPyObject_type ())) ); |
1963 | if (sobj) { |
1964 | sobj->ptr = ptr; |
1965 | sobj->ty = ty; |
1966 | sobj->own = own; |
1967 | sobj->next = 0; |
1968 | } |
1969 | return (PyObject *)sobj; |
1970 | } |
1971 | |
1972 | /* ----------------------------------------------------------------------------- |
1973 | * Implements a simple Swig Packed type, and use it instead of string |
1974 | * ----------------------------------------------------------------------------- */ |
1975 | |
1976 | typedef struct { |
1977 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
1978 | void *pack; |
1979 | swig_type_info *ty; |
1980 | size_t size; |
1981 | } SwigPyPacked; |
1982 | |
1983 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
1984 | SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
1985 | { |
1986 | char result[SWIG_BUFFER_SIZE1024]; |
1987 | fputs("<Swig Packed ", fp); |
1988 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { |
1989 | fputs("at ", fp); |
1990 | fputs(result, fp); |
1991 | } |
1992 | fputs(v->ty->name,fp); |
1993 | fputs(">", fp); |
1994 | return 0; |
1995 | } |
1996 | |
1997 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1998 | SwigPyPacked_repr(SwigPyPacked *v) |
1999 | { |
2000 | char result[SWIG_BUFFER_SIZE1024]; |
2001 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { |
2002 | return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
2003 | } else { |
2004 | return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed %s>", v->ty->name); |
2005 | } |
2006 | } |
2007 | |
2008 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2009 | SwigPyPacked_str(SwigPyPacked *v) |
2010 | { |
2011 | char result[SWIG_BUFFER_SIZE1024]; |
2012 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ |
2013 | return SWIG_Python_str_FromFormatPyString_FromFormat("%s%s", result, v->ty->name); |
2014 | } else { |
2015 | return SWIG_Python_str_FromChar(v->ty->name); |
2016 | } |
2017 | } |
2018 | |
2019 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2020 | SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) |
2021 | { |
2022 | size_t i = v->size; |
2023 | size_t j = w->size; |
2024 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); |
2025 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); |
2026 | } |
2027 | |
2028 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void); |
2029 | |
2030 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
2031 | SwigPyPacked_type(void) { |
2032 | static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce(); |
2033 | return type; |
2034 | } |
2035 | |
2036 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
2037 | SwigPyPacked_Check(PyObject *op) { |
2038 | return ((op)->ob_type == SwigPyPacked_TypeOnce()) |
2039 | || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); |
2040 | } |
2041 | |
2042 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2043 | SwigPyPacked_dealloc(PyObject *v) |
2044 | { |
2045 | if (SwigPyPacked_Check(v)) { |
2046 | SwigPyPacked *sobj = (SwigPyPacked *) v; |
2047 | free(sobj->pack); |
2048 | } |
2049 | PyObject_DELPyObject_Free(v); |
2050 | } |
2051 | |
2052 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
2053 | SwigPyPacked_TypeOnce(void) { |
2054 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; |
2055 | static PyTypeObject swigpypacked_type; |
2056 | static int type_init = 0; |
2057 | if (!type_init) { |
2058 | const PyTypeObject tmp = { |
2059 | /* PyObject header changed in Python 3 */ |
2060 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2061 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
2062 | #else |
2063 | PyObject_HEAD_INIT(NULL)1, __null, |
2064 | 0, /* ob_size */ |
2065 | #endif |
2066 | (char *)"SwigPyPacked", /* tp_name */ |
2067 | sizeof(SwigPyPacked), /* tp_basicsize */ |
2068 | 0, /* tp_itemsize */ |
2069 | (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ |
2070 | (printfunc)SwigPyPacked_print, /* tp_print */ |
2071 | (getattrfunc)0, /* tp_getattr */ |
2072 | (setattrfunc)0, /* tp_setattr */ |
2073 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2074 | 0, /* tp_reserved in 3.0.1 */ |
2075 | #else |
2076 | (cmpfunc)SwigPyPacked_compare, /* tp_compare */ |
2077 | #endif |
2078 | (reprfunc)SwigPyPacked_repr, /* tp_repr */ |
2079 | 0, /* tp_as_number */ |
2080 | 0, /* tp_as_sequence */ |
2081 | 0, /* tp_as_mapping */ |
2082 | (hashfunc)0, /* tp_hash */ |
2083 | (ternaryfunc)0, /* tp_call */ |
2084 | (reprfunc)SwigPyPacked_str, /* tp_str */ |
2085 | PyObject_GenericGetAttr, /* tp_getattro */ |
2086 | 0, /* tp_setattro */ |
2087 | 0, /* tp_as_buffer */ |
2088 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0), /* tp_flags */ |
2089 | swigpacked_doc, /* tp_doc */ |
2090 | 0, /* tp_traverse */ |
2091 | 0, /* tp_clear */ |
2092 | 0, /* tp_richcompare */ |
2093 | 0, /* tp_weaklistoffset */ |
2094 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
2095 | 0, /* tp_iter */ |
2096 | 0, /* tp_iternext */ |
2097 | 0, /* tp_methods */ |
2098 | 0, /* tp_members */ |
2099 | 0, /* tp_getset */ |
2100 | 0, /* tp_base */ |
2101 | 0, /* tp_dict */ |
2102 | 0, /* tp_descr_get */ |
2103 | 0, /* tp_descr_set */ |
2104 | 0, /* tp_dictoffset */ |
2105 | 0, /* tp_init */ |
2106 | 0, /* tp_alloc */ |
2107 | 0, /* tp_new */ |
2108 | 0, /* tp_free */ |
2109 | 0, /* tp_is_gc */ |
2110 | 0, /* tp_bases */ |
2111 | 0, /* tp_mro */ |
2112 | 0, /* tp_cache */ |
2113 | 0, /* tp_subclasses */ |
2114 | 0, /* tp_weaklist */ |
2115 | #endif |
2116 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
2117 | 0, /* tp_del */ |
2118 | #endif |
2119 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
2120 | 0, /* tp_version */ |
2121 | #endif |
2122 | #ifdef COUNT_ALLOCS |
2123 | 0,0,0,0 /* tp_alloc -> tp_next */ |
2124 | #endif |
2125 | }; |
2126 | swigpypacked_type = tmp; |
2127 | type_init = 1; |
2128 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
2129 | swigpypacked_type.ob_type = &PyType_Type; |
2130 | #else |
2131 | if (PyType_Ready(&swigpypacked_type) < 0) |
2132 | return NULL__null; |
2133 | #endif |
2134 | } |
2135 | return &swigpypacked_type; |
2136 | } |
2137 | |
2138 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2139 | SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) |
2140 | { |
2141 | SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type())( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type ())) ); |
2142 | if (sobj) { |
2143 | void *pack = malloc(size); |
2144 | if (pack) { |
2145 | memcpy(pack, ptr, size); |
2146 | sobj->pack = pack; |
2147 | sobj->ty = ty; |
2148 | sobj->size = size; |
2149 | } else { |
2150 | PyObject_DELPyObject_Free((PyObject *) sobj); |
2151 | sobj = 0; |
2152 | } |
2153 | } |
2154 | return (PyObject *) sobj; |
2155 | } |
2156 | |
2157 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
2158 | SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
2159 | { |
2160 | if (SwigPyPacked_Check(obj)) { |
2161 | SwigPyPacked *sobj = (SwigPyPacked *)obj; |
2162 | if (sobj->size != size) return 0; |
2163 | memcpy(ptr, sobj->pack, size); |
2164 | return sobj->ty; |
2165 | } else { |
2166 | return 0; |
2167 | } |
2168 | } |
2169 | |
2170 | /* ----------------------------------------------------------------------------- |
2171 | * pointers/data manipulation |
2172 | * ----------------------------------------------------------------------------- */ |
2173 | |
2174 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
2175 | _SWIG_This(void) |
2176 | { |
2177 | return SWIG_Python_str_FromChar("this"); |
2178 | } |
2179 | |
2180 | static PyObject *swig_this = NULL__null; |
2181 | |
2182 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2183 | SWIG_This(void) |
2184 | { |
2185 | if (swig_this == NULL__null) |
2186 | swig_this = _SWIG_This(); |
2187 | return swig_this; |
2188 | } |
2189 | |
2190 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
2191 | |
2192 | /* TODO: I don't know how to implement the fast getset in Python 3 right now */ |
2193 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2194 | #define SWIG_PYTHON_SLOW_GETSET_THIS |
2195 | #endif |
2196 | |
2197 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject * |
2198 | SWIG_Python_GetSwigThis(PyObject *pyobj) |
2199 | { |
2200 | PyObject *obj; |
2201 | |
2202 | if (SwigPyObject_Check(pyobj)) |
2203 | return (SwigPyObject *) pyobj; |
2204 | |
2205 | #ifdef SWIGPYTHON_BUILTIN |
2206 | (void)obj; |
2207 | # ifdef PyWeakref_CheckProxy |
2208 | if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType ) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType ))) { |
2209 | pyobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))-> ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object : (&_Py_NoneStruct)); |
2210 | if (pyobj && SwigPyObject_Check(pyobj)) |
2211 | return (SwigPyObject*) pyobj; |
2212 | } |
2213 | # endif |
2214 | return NULL__null; |
2215 | #else |
2216 | |
2217 | obj = 0; |
2218 | |
2219 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000)) |
2220 | if (PyInstance_Check(pyobj)((pyobj)->ob_type == &PyInstance_Type)) { |
2221 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); |
2222 | } else { |
2223 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); |
2224 | if (dictptr != NULL__null) { |
2225 | PyObject *dict = *dictptr; |
2226 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; |
2227 | } else { |
2228 | #ifdef PyWeakref_CheckProxy |
2229 | if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType ) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType ))) { |
2230 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))-> ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object : (&_Py_NoneStruct)); |
2231 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; |
2232 | } |
2233 | #endif |
2234 | obj = PyObject_GetAttr(pyobj,SWIG_This()); |
2235 | if (obj) { |
2236 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2237 | } else { |
2238 | if (PyErr_Occurred()) PyErr_Clear(); |
2239 | return 0; |
2240 | } |
2241 | } |
2242 | } |
2243 | #else |
2244 | obj = PyObject_GetAttr(pyobj,SWIG_This()); |
2245 | if (obj) { |
2246 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2247 | } else { |
2248 | if (PyErr_Occurred()) PyErr_Clear(); |
2249 | return 0; |
2250 | } |
2251 | #endif |
2252 | if (obj && !SwigPyObject_Check(obj)) { |
2253 | /* a PyObject is called 'this', try to get the 'real this' |
2254 | SwigPyObject from it */ |
2255 | return SWIG_Python_GetSwigThis(obj); |
2256 | } |
2257 | return (SwigPyObject *)obj; |
2258 | #endif |
2259 | } |
2260 | |
2261 | /* Acquire a pointer value */ |
2262 | |
2263 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2264 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { |
2265 | if (own == SWIG_POINTER_OWN0x1) { |
2266 | SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); |
2267 | if (sobj) { |
2268 | int oldown = sobj->own; |
2269 | sobj->own = own; |
2270 | return oldown; |
2271 | } |
2272 | } |
2273 | return 0; |
2274 | } |
2275 | |
2276 | /* Convert a pointer value */ |
2277 | |
2278 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2279 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
2280 | int res; |
2281 | SwigPyObject *sobj; |
2282 | int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV(0x1 << 1)) != 0; |
2283 | |
2284 | if (!obj) |
2285 | return SWIG_ERROR(-1); |
2286 | if (obj == Py_None(&_Py_NoneStruct) && !implicit_conv) { |
2287 | if (ptr) |
2288 | *ptr = 0; |
2289 | return SWIG_OK(0); |
2290 | } |
2291 | |
2292 | res = SWIG_ERROR(-1); |
2293 | |
2294 | sobj = SWIG_Python_GetSwigThis(obj); |
2295 | if (own) |
2296 | *own = 0; |
2297 | while (sobj) { |
2298 | void *vptr = sobj->ptr; |
2299 | if (ty) { |
2300 | swig_type_info *to = sobj->ty; |
2301 | if (to == ty) { |
2302 | /* no type cast needed */ |
2303 | if (ptr) *ptr = vptr; |
2304 | break; |
2305 | } else { |
2306 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); |
2307 | if (!tc) { |
2308 | sobj = (SwigPyObject *)sobj->next; |
2309 | } else { |
2310 | if (ptr) { |
2311 | int newmemory = 0; |
2312 | *ptr = SWIG_TypeCast(tc,vptr,&newmemory); |
2313 | if (newmemory == SWIG_CAST_NEW_MEMORY0x2) { |
2314 | assert(own)((void)0); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ |
2315 | if (own) |
2316 | *own = *own | SWIG_CAST_NEW_MEMORY0x2; |
2317 | } |
2318 | } |
2319 | break; |
2320 | } |
2321 | } |
2322 | } else { |
2323 | if (ptr) *ptr = vptr; |
2324 | break; |
2325 | } |
2326 | } |
2327 | if (sobj) { |
2328 | if (own) |
2329 | *own = *own | sobj->own; |
2330 | if (flags & SWIG_POINTER_DISOWN0x1) { |
2331 | sobj->own = 0; |
2332 | } |
2333 | res = SWIG_OK(0); |
2334 | } else { |
2335 | if (implicit_conv) { |
2336 | SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; |
2337 | if (data && !data->implicitconv) { |
2338 | PyObject *klass = data->klass; |
2339 | if (klass) { |
2340 | PyObject *impconv; |
2341 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ |
2342 | impconv = SWIG_Python_CallFunctor(klass, obj)PyObject_CallFunctionObjArgs(klass, obj, __null);; |
2343 | data->implicitconv = 0; |
2344 | if (PyErr_Occurred()) { |
2345 | PyErr_Clear(); |
2346 | impconv = 0; |
2347 | } |
2348 | if (impconv) { |
2349 | SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); |
2350 | if (iobj) { |
2351 | void *vptr; |
2352 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); |
2353 | if (SWIG_IsOK(res)(res >= 0)) { |
2354 | if (ptr) { |
2355 | *ptr = vptr; |
2356 | /* transfer the ownership to 'ptr' */ |
2357 | iobj->own = 0; |
2358 | res = SWIG_AddCast(res)(res); |
2359 | res = SWIG_AddNewMask(res)((res >= 0) ? (res | ((1 << 8) << 1)) : res); |
2360 | } else { |
2361 | res = SWIG_AddCast(res)(res); |
2362 | } |
2363 | } |
2364 | } |
2365 | Py_DECREF(impconv)do { if ( --((PyObject*)(impconv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(impconv)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(impconv)))); } while (0); |
2366 | } |
2367 | } |
2368 | } |
2369 | } |
2370 | if (!SWIG_IsOK(res)(res >= 0) && obj == Py_None(&_Py_NoneStruct)) { |
2371 | if (ptr) |
2372 | *ptr = 0; |
2373 | if (PyErr_Occurred()) |
2374 | PyErr_Clear(); |
2375 | res = SWIG_OK(0); |
2376 | } |
2377 | } |
2378 | return res; |
2379 | } |
2380 | |
2381 | /* Convert a function ptr value */ |
2382 | |
2383 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2384 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2385 | if (!PyCFunction_Check(obj)((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) { |
2386 | return SWIG_ConvertPtr(obj, ptr, ty, 0)SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0); |
2387 | } else { |
2388 | void *vptr = 0; |
2389 | |
2390 | /* here we get the method pointer for callbacks */ |
2391 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
2392 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2393 | if (desc) |
2394 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; |
2395 | if (!desc) |
2396 | return SWIG_ERROR(-1); |
2397 | if (ty) { |
2398 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); |
2399 | if (tc) { |
2400 | int newmemory = 0; |
2401 | *ptr = SWIG_TypeCast(tc,vptr,&newmemory); |
2402 | assert(!newmemory)((void)0); /* newmemory handling not yet implemented */ |
2403 | } else { |
2404 | return SWIG_ERROR(-1); |
2405 | } |
2406 | } else { |
2407 | *ptr = vptr; |
2408 | } |
2409 | return SWIG_OK(0); |
2410 | } |
2411 | } |
2412 | |
2413 | /* Convert a packed value value */ |
2414 | |
2415 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2416 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2417 | swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); |
2418 | if (!to) return SWIG_ERROR(-1); |
2419 | if (ty) { |
2420 | if (to != ty) { |
2421 | /* check type cast? */ |
2422 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); |
2423 | if (!tc) return SWIG_ERROR(-1); |
2424 | } |
2425 | } |
2426 | return SWIG_OK(0); |
2427 | } |
2428 | |
2429 | /* ----------------------------------------------------------------------------- |
2430 | * Create a new pointer object |
2431 | * ----------------------------------------------------------------------------- */ |
2432 | |
2433 | /* |
2434 | Create a new instance object, without calling __init__, and set the |
2435 | 'this' attribute. |
2436 | */ |
2437 | |
2438 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
2439 | SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) |
2440 | { |
2441 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000) |
2442 | PyObject *inst = 0; |
2443 | PyObject *newraw = data->newraw; |
2444 | if (newraw) { |
2445 | inst = PyObject_Call(newraw, data->newargs, NULL__null); |
2446 | if (inst) { |
2447 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) |
2448 | PyObject **dictptr = _PyObject_GetDictPtr(inst); |
2449 | if (dictptr != NULL__null) { |
2450 | PyObject *dict = *dictptr; |
2451 | if (dict == NULL__null) { |
2452 | dict = PyDict_New(); |
2453 | *dictptr = dict; |
2454 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2455 | } |
2456 | } |
2457 | #else |
2458 | PyObject *key = SWIG_This(); |
2459 | PyObject_SetAttr(inst, key, swig_this); |
2460 | #endif |
2461 | } |
2462 | } else { |
2463 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2464 | inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct)); |
2465 | if (inst) { |
2466 | PyObject_SetAttr(inst, SWIG_This(), swig_this); |
2467 | Py_TYPE(inst)(((PyObject*)(inst))->ob_type)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG(1L<<19); |
2468 | } |
2469 | #else |
2470 | PyObject *dict = PyDict_New(); |
2471 | if (dict) { |
2472 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2473 | inst = PyInstance_NewRaw(data->newargs, dict); |
2474 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2475 | } |
2476 | #endif |
2477 | } |
2478 | return inst; |
2479 | #else |
2480 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02010000) |
2481 | PyObject *inst = 0; |
2482 | PyObject *dict = PyDict_New(); |
2483 | if (dict) { |
2484 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2485 | inst = PyInstance_NewRaw(data->newargs, dict); |
2486 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2487 | } |
2488 | return (PyObject *) inst; |
2489 | #else |
2490 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type)( (PyInstanceObject *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (&PyInstance_Type)->tp_basicsize ) ), (&PyInstance_Type )) ); |
2491 | if (inst == NULL__null) { |
2492 | return NULL__null; |
2493 | } |
2494 | inst->in_class = (PyClassObject *)data->newargs; |
2495 | Py_INCREF(inst->in_class)( ((PyObject*)(inst->in_class))->ob_refcnt++); |
2496 | inst->in_dict = PyDict_New(); |
2497 | if (inst->in_dict == NULL__null) { |
2498 | Py_DECREF(inst)do { if ( --((PyObject*)(inst))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(inst)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(inst)))); } while (0); |
2499 | return NULL__null; |
2500 | } |
2501 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS(1L<<6) |
2502 | inst->in_weakreflist = NULL__null; |
2503 | #endif |
2504 | #ifdef Py_TPFLAGS_GC0 |
2505 | PyObject_GC_Init(inst); |
2506 | #endif |
2507 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); |
2508 | return (PyObject *) inst; |
2509 | #endif |
2510 | #endif |
2511 | } |
2512 | |
2513 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2514 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) |
2515 | { |
2516 | PyObject *dict; |
2517 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) |
2518 | PyObject **dictptr = _PyObject_GetDictPtr(inst); |
2519 | if (dictptr != NULL__null) { |
2520 | dict = *dictptr; |
2521 | if (dict == NULL__null) { |
2522 | dict = PyDict_New(); |
2523 | *dictptr = dict; |
2524 | } |
2525 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2526 | return; |
2527 | } |
2528 | #endif |
2529 | dict = PyObject_GetAttrString(inst, (char*)"__dict__"); |
2530 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2531 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2532 | } |
2533 | |
2534 | |
2535 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
2536 | SWIG_Python_InitShadowInstance(PyObject *args) { |
2537 | PyObject *obj[2]; |
2538 | if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { |
2539 | return NULL__null; |
2540 | } else { |
2541 | SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); |
2542 | if (sthis) { |
2543 | SwigPyObject_append((PyObject*) sthis, obj[1]); |
2544 | } else { |
2545 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
2546 | } |
2547 | return SWIG_Py_Void(); |
2548 | } |
2549 | } |
2550 | |
2551 | /* Create a new pointer object */ |
2552 | |
2553 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2554 | SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { |
2555 | SwigPyClientData *clientdata; |
2556 | PyObject * robj; |
2557 | int own; |
2558 | |
2559 | if (!ptr) |
2560 | return SWIG_Py_Void(); |
2561 | |
2562 | clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; |
2563 | own = (flags & SWIG_POINTER_OWN0x1) ? SWIG_POINTER_OWN0x1 : 0; |
2564 | if (clientdata && clientdata->pytype) { |
2565 | SwigPyObject *newobj; |
2566 | if (flags & SWIG_BUILTIN_TP_INIT(0x1 << 2)) { |
2567 | newobj = (SwigPyObject*) self; |
2568 | if (newobj->ptr) { |
2569 | PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); |
2570 | while (newobj->next) |
2571 | newobj = (SwigPyObject *) newobj->next; |
2572 | newobj->next = next_self; |
2573 | newobj = (SwigPyObject *)next_self; |
2574 | } |
2575 | } else { |
2576 | newobj = PyObject_New(SwigPyObject, clientdata->pytype)( (SwigPyObject *) _PyObject_New(clientdata->pytype) ); |
2577 | } |
2578 | if (newobj) { |
2579 | newobj->ptr = ptr; |
2580 | newobj->ty = type; |
2581 | newobj->own = own; |
2582 | newobj->next = 0; |
2583 | #ifdef SWIGPYTHON_BUILTIN |
2584 | newobj->dict = 0; |
2585 | #endif |
2586 | return (PyObject*) newobj; |
2587 | } |
2588 | return SWIG_Py_Void(); |
2589 | } |
2590 | |
2591 | assert(!(flags & SWIG_BUILTIN_TP_INIT))((void)0); |
2592 | |
2593 | robj = SwigPyObject_New(ptr, type, own); |
2594 | if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW(0x1 << 1))) { |
2595 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); |
2596 | Py_DECREF(robj)do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(robj)))); } while (0); |
2597 | robj = inst; |
2598 | } |
2599 | return robj; |
2600 | } |
2601 | |
2602 | /* Create a new packed object */ |
2603 | |
2604 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
2605 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
2606 | return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
2607 | } |
2608 | |
2609 | /* -----------------------------------------------------------------------------* |
2610 | * Get type list |
2611 | * -----------------------------------------------------------------------------*/ |
2612 | |
2613 | #ifdef SWIG_LINK_RUNTIME |
2614 | void *SWIG_ReturnGlobalTypeList(void *); |
2615 | #endif |
2616 | |
2617 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info * |
2618 | SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { |
2619 | static void *type_pointer = (void *)0; |
2620 | /* first check if module already created */ |
2621 | if (!type_pointer) { |
2622 | #ifdef SWIG_LINK_RUNTIME |
2623 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); |
2624 | #else |
2625 | # ifdef SWIGPY_USE_CAPSULE |
2626 | type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), 0); |
2627 | # else |
2628 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4", |
2629 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); |
2630 | # endif |
2631 | if (PyErr_Occurred()) { |
2632 | PyErr_Clear(); |
2633 | type_pointer = (void *)0; |
2634 | } |
2635 | #endif |
2636 | } |
2637 | return (swig_module_info *) type_pointer; |
2638 | } |
2639 | |
2640 | #if PY_MAJOR_VERSION2 < 2 |
2641 | /* PyModule_AddObject function was introduced in Python 2.0. The following function |
2642 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
2643 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
2644 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) |
2645 | { |
2646 | PyObject *dict; |
2647 | if (!PyModule_Check(m)((((PyObject*)(m))->ob_type) == (&PyModule_Type) || PyType_IsSubtype ((((PyObject*)(m))->ob_type), (&PyModule_Type)))) { |
2648 | PyErr_SetString(PyExc_TypeError, |
2649 | "PyModule_AddObject() needs module as first arg"); |
2650 | return SWIG_ERROR(-1); |
2651 | } |
2652 | if (!o) { |
2653 | PyErr_SetString(PyExc_TypeError, |
2654 | "PyModule_AddObject() needs non-NULL value"); |
2655 | return SWIG_ERROR(-1); |
2656 | } |
2657 | |
2658 | dict = PyModule_GetDict(m); |
2659 | if (dict == NULL__null) { |
2660 | /* Internal error -- modules must have a dict! */ |
2661 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", |
2662 | PyModule_GetName(m)); |
2663 | return SWIG_ERROR(-1); |
2664 | } |
2665 | if (PyDict_SetItemString(dict, name, o)) |
2666 | return SWIG_ERROR(-1); |
2667 | Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(o)))); } while (0); |
2668 | return SWIG_OK(0); |
2669 | } |
2670 | #endif |
2671 | |
2672 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2673 | #ifdef SWIGPY_USE_CAPSULE |
2674 | SWIG_Python_DestroyModule(PyObject *obj) |
2675 | #else |
2676 | SWIG_Python_DestroyModule(void *vptr) |
2677 | #endif |
2678 | { |
2679 | #ifdef SWIGPY_USE_CAPSULE |
2680 | swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" )); |
2681 | #else |
2682 | swig_module_info *swig_module = (swig_module_info *) vptr; |
2683 | #endif |
2684 | swig_type_info **types = swig_module->types; |
2685 | size_t i; |
2686 | for (i =0; i < swig_module->size; ++i) { |
2687 | swig_type_info *ty = types[i]; |
2688 | if (ty->owndata) { |
2689 | SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; |
2690 | if (data) SwigPyClientData_Del(data); |
2691 | } |
2692 | } |
2693 | Py_DECREF(SWIG_This())do { if ( --((PyObject*)(SWIG_This()))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(SWIG_This())))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(SWIG_This())))); } while (0); |
2694 | swig_this = NULL__null; |
2695 | } |
2696 | |
2697 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2698 | SWIG_Python_SetModule(swig_module_info *swig_module) { |
2699 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2700 | /* Add a dummy module object into sys.modules */ |
2701 | PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4"); |
2702 | #else |
2703 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL__null, NULL__null, 0, NULL__null} }; /* Sentinel */ |
2704 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table)Py_InitModule4_64((char*)"swig_runtime_data" "4", swig_empty_runtime_method_table , (char *)__null, (PyObject *)__null, 1013); |
2705 | #endif |
2706 | #ifdef SWIGPY_USE_CAPSULE |
2707 | PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), SWIG_Python_DestroyModule); |
2708 | if (pointer && module) { |
2709 | PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); |
2710 | } else { |
2711 | Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*) (pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pointer)))); } while (0); } while (0); |
2712 | } |
2713 | #else |
2714 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
2715 | if (pointer && module) { |
2716 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); |
2717 | } else { |
2718 | Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*) (pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pointer)))); } while (0); } while (0); |
2719 | } |
2720 | #endif |
2721 | } |
2722 | |
2723 | /* The python cached type query */ |
2724 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2725 | SWIG_Python_TypeCache(void) { |
2726 | static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New(); |
2727 | return cache; |
2728 | } |
2729 | |
2730 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
2731 | SWIG_Python_TypeQuery(const char *type) |
2732 | { |
2733 | PyObject *cache = SWIG_Python_TypeCache(); |
2734 | PyObject *key = SWIG_Python_str_FromChar(type); |
2735 | PyObject *obj = PyDict_GetItem(cache, key); |
2736 | swig_type_info *descriptor; |
2737 | if (obj) { |
2738 | #ifdef SWIGPY_USE_CAPSULE |
2739 | descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL__null); |
2740 | #else |
2741 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); |
2742 | #endif |
2743 | } else { |
2744 | swig_module_info *swig_module = SWIG_GetModule(0)SWIG_Python_GetModule(0); |
2745 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); |
2746 | if (descriptor) { |
2747 | #ifdef SWIGPY_USE_CAPSULE |
2748 | obj = PyCapsule_New((void*) descriptor, NULL__null, NULL__null); |
2749 | #else |
2750 | obj = PyCObject_FromVoidPtr(descriptor, NULL__null); |
2751 | #endif |
2752 | PyDict_SetItem(cache, key, obj); |
2753 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2754 | } |
2755 | } |
2756 | Py_DECREF(key)do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(key)))); } while (0); |
2757 | return descriptor; |
2758 | } |
2759 | |
2760 | /* |
2761 | For backward compatibility only |
2762 | */ |
2763 | #define SWIG_POINTER_EXCEPTION0 0 |
2764 | #define SWIG_arg_fail(arg)SWIG_Python_ArgFail(arg) SWIG_Python_ArgFail(arg) |
2765 | #define SWIG_MustGetPtr(p, type, argnum, flags)SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) |
2766 | |
2767 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2768 | SWIG_Python_AddErrMesg(const char* mesg, int infront) |
2769 | { |
2770 | if (PyErr_Occurred()) { |
2771 | PyObject *type = 0; |
2772 | PyObject *value = 0; |
2773 | PyObject *traceback = 0; |
2774 | PyErr_Fetch(&type, &value, &traceback); |
2775 | if (value) { |
2776 | char *tmp; |
2777 | PyObject *old_str = PyObject_Str(value); |
2778 | Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt ++); } while (0); |
2779 | PyErr_Clear(); |
2780 | if (infront) { |
2781 | PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); |
2782 | } else { |
2783 | PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); |
2784 | } |
2785 | SWIG_Python_str_DelForPy3(tmp); |
2786 | Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(old_str)))); } while (0); |
2787 | } |
2788 | return 1; |
2789 | } else { |
2790 | return 0; |
2791 | } |
2792 | } |
2793 | |
2794 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2795 | SWIG_Python_ArgFail(int argnum) |
2796 | { |
2797 | if (PyErr_Occurred()) { |
2798 | /* add information about failing argument */ |
2799 | char mesg[256]; |
2800 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); |
2801 | return SWIG_Python_AddErrMesg(mesg, 1); |
2802 | } else { |
2803 | return 0; |
2804 | } |
2805 | } |
2806 | |
2807 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char * |
2808 | SwigPyObject_GetDesc(PyObject *self) |
2809 | { |
2810 | SwigPyObject *v = (SwigPyObject *)self; |
2811 | swig_type_info *ty = v ? v->ty : 0; |
2812 | return ty ? ty->str : ""; |
2813 | } |
2814 | |
2815 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2816 | SWIG_Python_TypeError(const char *type, PyObject *obj) |
2817 | { |
2818 | if (type) { |
2819 | #if defined(SWIG_COBJECT_TYPES) |
2820 | if (obj && SwigPyObject_Check(obj)) { |
2821 | const char *otype = (const char *) SwigPyObject_GetDesc(obj); |
2822 | if (otype) { |
2823 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", |
2824 | type, otype); |
2825 | return; |
2826 | } |
2827 | } else |
2828 | #endif |
2829 | { |
2830 | const char *otype = (obj ? obj->ob_type->tp_name : 0); |
2831 | if (otype) { |
2832 | PyObject *str = PyObject_Str(obj); |
2833 | const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; |
2834 | if (cstr) { |
2835 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", |
2836 | type, otype, cstr); |
2837 | SWIG_Python_str_DelForPy3(cstr); |
2838 | } else { |
2839 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", |
2840 | type, otype); |
2841 | } |
2842 | Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (str)))); } while (0); } while (0); |
2843 | return; |
2844 | } |
2845 | } |
2846 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); |
2847 | } else { |
2848 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); |
2849 | } |
2850 | } |
2851 | |
2852 | |
2853 | /* Convert a pointer value, signal an exception on a type mismatch */ |
2854 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void * |
2855 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { |
2856 | void *result; |
2857 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags)SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) { |
2858 | PyErr_Clear(); |
2859 | #if SWIG_POINTER_EXCEPTION0 |
2860 | if (flags) { |
2861 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); |
2862 | SWIG_Python_ArgFail(argnum); |
2863 | } |
2864 | #endif |
2865 | } |
2866 | return result; |
2867 | } |
2868 | |
2869 | #ifdef SWIGPYTHON_BUILTIN |
2870 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2871 | SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { |
2872 | PyTypeObject *tp = obj->ob_type; |
2873 | PyObject *descr; |
2874 | PyObject *encoded_name; |
2875 | descrsetfunc f; |
2876 | int res = -1; |
2877 | |
2878 | # ifdef Py_USING_UNICODE1 |
2879 | if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) { |
2880 | name = PyUnicode_DecodePyUnicodeUCS2_Decode(PyString_AsString(name), PyString_Size(name), NULL__null, NULL__null); |
2881 | if (!name) |
2882 | return -1; |
2883 | } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<28))) != 0)) |
2884 | # else |
2885 | if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) |
2886 | # endif |
2887 | { |
2888 | PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); |
2889 | return -1; |
2890 | } else { |
2891 | Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++); |
2892 | } |
2893 | |
2894 | if (!tp->tp_dict) { |
2895 | if (PyType_Ready(tp) < 0) |
2896 | goto done; |
2897 | } |
2898 | |
2899 | descr = _PyType_Lookup(tp, name); |
2900 | f = NULL__null; |
2901 | if (descr != NULL__null) |
2902 | f = descr->ob_type->tp_descr_set; |
2903 | if (!f) { |
2904 | if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) { |
2905 | encoded_name = name; |
2906 | Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++); |
2907 | } else { |
2908 | encoded_name = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(name); |
2909 | } |
2910 | PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); |
2911 | Py_DECREF(encoded_name)do { if ( --((PyObject*)(encoded_name))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(encoded_name)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(encoded_name)))); } while (0); |
2912 | } else { |
2913 | res = f(descr, obj, value); |
2914 | } |
2915 | |
2916 | done: |
2917 | Py_DECREF(name)do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(name)))); } while (0); |
2918 | return res; |
2919 | } |
2920 | #endif |
2921 | |
2922 | |
2923 | #ifdef __cplusplus199711L |
2924 | } |
2925 | #endif |
2926 | |
2927 | |
2928 | |
2929 | #define SWIG_exception_fail(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg ); goto fail; } while(0) do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail; } while(0) |
2930 | |
2931 | #define SWIG_contract_assert(expr, msg)if (!(expr)) { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType( -3), msg); goto fail; } else if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), msg); SWIG_failgoto fail; } else |
2932 | |
2933 | |
2934 | |
2935 | #define SWIG_exception(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg ); goto fail;; } while(0) do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail;; } while(0) |
2936 | |
2937 | |
2938 | /* -------- TYPES TABLE (BEGIN) -------- */ |
2939 | |
2940 | #define SWIGTYPE_p_GBaseswig_types[0] swig_types[0] |
2941 | #define SWIGTYPE_p_GContainerswig_types[1] swig_types[1] |
2942 | #define SWIGTYPE_p_GException__test_errorswig_types[2] swig_types[2] |
2943 | #define SWIGTYPE_p_GException__test_failureswig_types[3] swig_types[3] |
2944 | #define SWIGTYPE_p_GPythonTestSuiteswig_types[4] swig_types[4] |
2945 | #define SWIGTYPE_p_GTestCaseswig_types[5] swig_types[5] |
2946 | #define SWIGTYPE_p_GTestSuiteswig_types[6] swig_types[6] |
2947 | #define SWIGTYPE_p_GTestSuitesswig_types[7] swig_types[7] |
2948 | #define SWIGTYPE_p_charswig_types[8] swig_types[8] |
2949 | #define SWIGTYPE_p_std__exceptionswig_types[9] swig_types[9] |
2950 | #define SWIGTYPE_p_std__invalid_argumentswig_types[10] swig_types[10] |
2951 | #define SWIGTYPE_p_swig__SwigPyIteratorswig_types[11] swig_types[11] |
2952 | #define SWIGTYPE_p_time_tswig_types[12] swig_types[12] |
2953 | static swig_type_info *swig_types[14]; |
2954 | static swig_module_info swig_module = {swig_types, 13, 0, 0, 0, 0}; |
2955 | #define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name ) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2956 | #define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module , name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) |
2957 | |
2958 | /* -------- TYPES TABLE (END) -------- */ |
2959 | |
2960 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) <= 0x02000000) |
2961 | # if !defined(SWIG_PYTHON_CLASSIC) |
2962 | # error "This python version requires swig to be run with the '-classic' option" |
2963 | # endif |
2964 | #endif |
2965 | |
2966 | /*----------------------------------------------- |
2967 | @(target):= _test.so |
2968 | ------------------------------------------------*/ |
2969 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2970 | # define SWIG_initinit_test PyInit__test |
2971 | |
2972 | #else |
2973 | # define SWIG_initinit_test init_test |
2974 | |
2975 | #endif |
2976 | #define SWIG_name"_test" "_test" |
2977 | |
2978 | #define SWIGVERSION0x020011 0x020011 |
2979 | #define SWIG_VERSION0x020011 SWIGVERSION0x020011 |
2980 | |
2981 | |
2982 | #define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >( a)) const_cast< void * >(static_cast< const void * >(a)) |
2983 | #define SWIG_as_voidptrptr(a)((void)const_cast< void * >(static_cast< const void * >(*a)),reinterpret_cast< void** >(a)) ((void)SWIG_as_voidptr(*a)const_cast< void * >(static_cast< const void * >( *a)),reinterpret_cast< void** >(a)) |
2984 | |
2985 | |
2986 | #include <stdexcept> |
2987 | |
2988 | |
2989 | namespace swig { |
2990 | class SwigPtr_PyObject { |
2991 | protected: |
2992 | PyObject *_obj; |
2993 | |
2994 | public: |
2995 | SwigPtr_PyObject() :_obj(0) |
2996 | { |
2997 | } |
2998 | |
2999 | SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) |
3000 | { |
3001 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3002 | } |
3003 | |
3004 | SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) |
3005 | { |
3006 | if (initial_ref) { |
3007 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3008 | } |
3009 | } |
3010 | |
3011 | SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) |
3012 | { |
3013 | Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj ))->ob_refcnt++); } while (0); |
3014 | Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( _obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(_obj)))); } while (0); } while (0); |
3015 | _obj = item._obj; |
3016 | return *this; |
3017 | } |
3018 | |
3019 | ~SwigPtr_PyObject() |
3020 | { |
3021 | Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( _obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(_obj)))); } while (0); } while (0); |
3022 | } |
3023 | |
3024 | operator PyObject *() const |
3025 | { |
3026 | return _obj; |
3027 | } |
3028 | |
3029 | PyObject *operator->() const |
3030 | { |
3031 | return _obj; |
3032 | } |
3033 | }; |
3034 | } |
3035 | |
3036 | |
3037 | namespace swig { |
3038 | struct SwigVar_PyObject : SwigPtr_PyObject { |
3039 | SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } |
3040 | |
3041 | SwigVar_PyObject & operator = (PyObject* obj) |
3042 | { |
3043 | Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( _obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(_obj)))); } while (0); } while (0); |
3044 | _obj = obj; |
3045 | return *this; |
3046 | } |
3047 | }; |
3048 | } |
3049 | |
3050 | |
3051 | #include <stddef.h> |
3052 | #include "GException.hpp" |
3053 | #include "GTools.hpp" |
3054 | |
3055 | |
3056 | #include <stdexcept> |
3057 | |
3058 | |
3059 | #if defined(__GNUC__4) |
3060 | # if __GNUC__4 == 2 && __GNUC_MINOR <= 96 |
3061 | # define SWIG_STD_NOMODERN_STL |
3062 | # endif |
3063 | #endif |
3064 | |
3065 | |
3066 | #include <string> |
3067 | #include <stdexcept> |
3068 | #include <stddef.h> |
3069 | |
3070 | |
3071 | #include <string> |
3072 | |
3073 | |
3074 | #include <iostream> |
3075 | |
3076 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
3077 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj)) |
3078 | #else |
3079 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj)) |
3080 | #endif |
3081 | |
3082 | |
3083 | #include <stddef.h> |
3084 | |
3085 | |
3086 | namespace swig { |
3087 | struct stop_iteration { |
3088 | }; |
3089 | |
3090 | struct SwigPyIterator { |
3091 | private: |
3092 | SwigPtr_PyObject _seq; |
3093 | |
3094 | protected: |
3095 | SwigPyIterator(PyObject *seq) : _seq(seq) |
3096 | { |
3097 | } |
3098 | |
3099 | public: |
3100 | virtual ~SwigPyIterator() {} |
3101 | |
3102 | // Access iterator method, required by Python |
3103 | virtual PyObject *value() const = 0; |
3104 | |
3105 | // Forward iterator method, required by Python |
3106 | virtual SwigPyIterator *incr(size_t n = 1) = 0; |
3107 | |
3108 | // Backward iterator method, very common in C++, but not required in Python |
3109 | virtual SwigPyIterator *decr(size_t /*n*/ = 1) |
3110 | { |
3111 | throw stop_iteration(); |
3112 | } |
3113 | |
3114 | // Random access iterator methods, but not required in Python |
3115 | virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const |
3116 | { |
3117 | throw std::invalid_argument("operation not supported"); |
3118 | } |
3119 | |
3120 | virtual bool equal (const SwigPyIterator &/*x*/) const |
3121 | { |
3122 | throw std::invalid_argument("operation not supported"); |
3123 | } |
3124 | |
3125 | // C++ common/needed methods |
3126 | virtual SwigPyIterator *copy() const = 0; |
3127 | |
3128 | PyObject *next() |
3129 | { |
3130 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3131 | PyObject *obj = value(); |
3132 | incr(); |
3133 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3134 | return obj; |
3135 | } |
3136 | |
3137 | /* Make an alias for Python 3.x */ |
3138 | PyObject *__next__() |
3139 | { |
3140 | return next(); |
3141 | } |
3142 | |
3143 | PyObject *previous() |
3144 | { |
3145 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3146 | decr(); |
3147 | PyObject *obj = value(); |
3148 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3149 | return obj; |
3150 | } |
3151 | |
3152 | SwigPyIterator *advance(ptrdiff_t n) |
3153 | { |
3154 | return (n > 0) ? incr(n) : decr(-n); |
3155 | } |
3156 | |
3157 | bool operator == (const SwigPyIterator& x) const |
3158 | { |
3159 | return equal(x); |
3160 | } |
3161 | |
3162 | bool operator != (const SwigPyIterator& x) const |
3163 | { |
3164 | return ! operator==(x); |
3165 | } |
3166 | |
3167 | SwigPyIterator& operator += (ptrdiff_t n) |
3168 | { |
3169 | return *advance(n); |
3170 | } |
3171 | |
3172 | SwigPyIterator& operator -= (ptrdiff_t n) |
3173 | { |
3174 | return *advance(-n); |
3175 | } |
3176 | |
3177 | SwigPyIterator* operator + (ptrdiff_t n) const |
3178 | { |
3179 | return copy()->advance(n); |
3180 | } |
3181 | |
3182 | SwigPyIterator* operator - (ptrdiff_t n) const |
3183 | { |
3184 | return copy()->advance(-n); |
3185 | } |
3186 | |
3187 | ptrdiff_t operator - (const SwigPyIterator& x) const |
3188 | { |
3189 | return x.distance(*this); |
3190 | } |
3191 | |
3192 | static swig_type_info* descriptor() { |
3193 | static int init = 0; |
3194 | static swig_type_info* desc = 0; |
3195 | if (!init) { |
3196 | desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *" ); |
3197 | init = 1; |
3198 | } |
3199 | return desc; |
3200 | } |
3201 | }; |
3202 | |
3203 | #if defined(SWIGPYTHON_BUILTIN) |
3204 | inline PyObject* make_output_iterator_builtin (PyObject *pyself) |
3205 | { |
3206 | Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++); |
3207 | return pyself; |
3208 | } |
3209 | #endif |
3210 | } |
3211 | |
3212 | |
3213 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3214 | SWIG_AsVal_double (PyObject *obj, double *val) |
3215 | { |
3216 | int res = SWIG_TypeError-5; |
3217 | if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype ((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))) { |
3218 | if (val) *val = PyFloat_AsDouble(obj); |
3219 | return SWIG_OK(0); |
3220 | } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3221 | if (val) *val = PyInt_AsLong(obj); |
3222 | return SWIG_OK(0); |
3223 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3224 | double v = PyLong_AsDouble(obj); |
3225 | if (!PyErr_Occurred()) { |
3226 | if (val) *val = v; |
3227 | return SWIG_OK(0); |
3228 | } else { |
3229 | PyErr_Clear(); |
3230 | } |
3231 | } |
3232 | #ifdef SWIG_PYTHON_CAST_MODE |
3233 | { |
3234 | int dispatch = 0; |
3235 | double d = PyFloat_AsDouble(obj); |
3236 | if (!PyErr_Occurred()) { |
3237 | if (val) *val = d; |
3238 | return SWIG_AddCast(SWIG_OK)((0)); |
3239 | } else { |
3240 | PyErr_Clear(); |
3241 | } |
3242 | if (!dispatch) { |
3243 | long v = PyLong_AsLong(obj); |
3244 | if (!PyErr_Occurred()) { |
3245 | if (val) *val = v; |
3246 | return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0))); |
3247 | } else { |
3248 | PyErr_Clear(); |
3249 | } |
3250 | } |
3251 | } |
3252 | #endif |
3253 | return res; |
3254 | } |
3255 | |
3256 | |
3257 | #include <float.h> |
3258 | |
3259 | |
3260 | #include <math.h> |
3261 | |
3262 | |
3263 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3264 | SWIG_CanCastAsInteger(double *d, double min, double max) { |
3265 | double x = *d; |
3266 | if ((min <= x && x <= max)) { |
3267 | double fx = floor(x); |
3268 | double cx = ceil(x); |
3269 | double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
3270 | if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) { |
3271 | errno(*__error()) = 0; |
3272 | } else { |
3273 | double summ, reps, diff; |
3274 | if (rd < x) { |
3275 | diff = x - rd; |
3276 | } else if (rd > x) { |
3277 | diff = rd - x; |
3278 | } else { |
3279 | return 1; |
3280 | } |
3281 | summ = rd + x; |
3282 | reps = diff/summ; |
3283 | if (reps < 8*DBL_EPSILON2.2204460492503131e-16) { |
3284 | *d = rd; |
3285 | return 1; |
3286 | } |
3287 | } |
3288 | } |
3289 | return 0; |
3290 | } |
3291 | |
3292 | |
3293 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3294 | SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) |
3295 | { |
3296 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
3297 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3298 | long v = PyInt_AsLong(obj); |
3299 | if (v >= 0) { |
3300 | if (val) *val = v; |
3301 | return SWIG_OK(0); |
3302 | } else { |
3303 | return SWIG_OverflowError-7; |
3304 | } |
3305 | } else |
3306 | #endif |
3307 | if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3308 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3309 | if (!PyErr_Occurred()) { |
3310 | if (val) *val = v; |
3311 | return SWIG_OK(0); |
3312 | } else { |
3313 | PyErr_Clear(); |
3314 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3315 | { |
3316 | long v = PyLong_AsLong(obj); |
3317 | if (!PyErr_Occurred()) { |
3318 | if (v < 0) { |
3319 | return SWIG_OverflowError-7; |
3320 | } |
3321 | } else { |
3322 | PyErr_Clear(); |
3323 | } |
3324 | } |
3325 | #endif |
3326 | } |
3327 | } |
3328 | #ifdef SWIG_PYTHON_CAST_MODE |
3329 | { |
3330 | int dispatch = 0; |
3331 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3332 | if (!PyErr_Occurred()) { |
3333 | if (val) *val = v; |
3334 | return SWIG_AddCast(SWIG_OK)((0)); |
3335 | } else { |
3336 | PyErr_Clear(); |
3337 | } |
3338 | if (!dispatch) { |
3339 | double d; |
3340 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3341 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) { |
3342 | if (val) *val = (unsigned long)(d); |
3343 | return res; |
3344 | } |
3345 | } |
3346 | } |
3347 | #endif |
3348 | return SWIG_TypeError-5; |
3349 | } |
3350 | |
3351 | |
3352 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3353 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
3354 | { |
3355 | unsigned long v; |
3356 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
3357 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v); |
3358 | return res; |
3359 | } |
3360 | |
3361 | |
3362 | #define SWIG_From_longPyLong_FromLong PyLong_FromLong |
3363 | |
3364 | |
3365 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3366 | SWIG_From_ptrdiff_t (ptrdiff_t value) |
3367 | { |
3368 | return SWIG_From_longPyLong_FromLong (static_cast< long >(value)); |
3369 | } |
3370 | |
3371 | |
3372 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3373 | SWIG_From_bool (bool value) |
3374 | { |
3375 | return PyBool_FromLong(value ? 1 : 0); |
3376 | } |
3377 | |
3378 | |
3379 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3380 | SWIG_AsVal_long (PyObject *obj, long* val) |
3381 | { |
3382 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3383 | if (val) *val = PyInt_AsLong(obj); |
3384 | return SWIG_OK(0); |
3385 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3386 | long v = PyLong_AsLong(obj); |
3387 | if (!PyErr_Occurred()) { |
3388 | if (val) *val = v; |
3389 | return SWIG_OK(0); |
3390 | } else { |
3391 | PyErr_Clear(); |
3392 | } |
3393 | } |
3394 | #ifdef SWIG_PYTHON_CAST_MODE |
3395 | { |
3396 | int dispatch = 0; |
3397 | long v = PyInt_AsLong(obj); |
3398 | if (!PyErr_Occurred()) { |
3399 | if (val) *val = v; |
3400 | return SWIG_AddCast(SWIG_OK)((0)); |
3401 | } else { |
3402 | PyErr_Clear(); |
3403 | } |
3404 | if (!dispatch) { |
3405 | double d; |
3406 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3407 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) { |
3408 | if (val) *val = (long)(d); |
3409 | return res; |
3410 | } |
3411 | } |
3412 | } |
3413 | #endif |
3414 | return SWIG_TypeError-5; |
3415 | } |
3416 | |
3417 | |
3418 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3419 | SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) |
3420 | { |
3421 | long v; |
3422 | int res = SWIG_AsVal_long (obj, val ? &v : 0); |
3423 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v); |
3424 | return res; |
3425 | } |
3426 | |
3427 | |
3428 | #include <stdexcept> |
3429 | |
3430 | |
3431 | #include <algorithm> |
3432 | |
3433 | |
3434 | #include <vector> |
3435 | |
3436 | |
3437 | #include <utility> |
3438 | |
3439 | |
3440 | #include <map> |
3441 | #include <algorithm> |
3442 | #include <stdexcept> |
3443 | |
3444 | |
3445 | /* Put headers and other declarations here that are needed for compilation */ |
3446 | #include "GTestSuites.hpp" |
3447 | #include "GTools.hpp" |
3448 | |
3449 | |
3450 | SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info* |
3451 | SWIG_pchar_descriptor(void) |
3452 | { |
3453 | static int init = 0; |
3454 | static swig_type_info* info = 0; |
3455 | if (!init) { |
3456 | info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char" ); |
3457 | init = 1; |
3458 | } |
3459 | return info; |
3460 | } |
3461 | |
3462 | |
3463 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3464 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) |
3465 | { |
3466 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3467 | if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 28))) != 0)) |
3468 | #else |
3469 | if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 27))) != 0)) |
3470 | #endif |
3471 | { |
3472 | char *cstr; Py_ssize_t len; |
3473 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3474 | if (!alloc && cptr) { |
3475 | /* We can't allow converting without allocation, since the internal |
3476 | representation of string in Python 3 is UCS-2/UCS-4 but we require |
3477 | a UTF-8 representation. |
3478 | TODO(bhy) More detailed explanation */ |
3479 | return SWIG_RuntimeError-3; |
3480 | } |
3481 | obj = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(obj); |
3482 | PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len); |
3483 | if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3484 | #else |
3485 | PyString_AsStringAndSize(obj, &cstr, &len); |
3486 | #endif |
3487 | if (cptr) { |
3488 | if (alloc) { |
3489 | /* |
3490 | In python the user should not be able to modify the inner |
3491 | string representation. To warranty that, if you define |
3492 | SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string |
3493 | buffer is always returned. |
3494 | |
3495 | The default behavior is just to return the pointer value, |
3496 | so, be careful. |
3497 | */ |
3498 | #if defined(SWIG_PYTHON_SAFE_CSTRINGS) |
3499 | if (*alloc != SWIG_OLDOBJ((0))) |
3500 | #else |
3501 | if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) |
3502 | #endif |
3503 | { |
3504 | *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); |
3505 | *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3506 | } |
3507 | else { |
3508 | *cptr = cstr; |
3509 | *alloc = SWIG_OLDOBJ((0)); |
3510 | } |
3511 | } else { |
3512 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3513 | assert(0)((void)0); /* Should never reach here in Python 3 */ |
3514 | #endif |
3515 | *cptr = SWIG_Python_str_AsChar(obj); |
3516 | } |
3517 | } |
3518 | if (psize) *psize = len + 1; |
3519 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3520 | Py_XDECREF(obj)do { if ((obj) == __null) ; else do { if ( --((PyObject*)(obj ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (obj)))); } while (0); } while (0); |
3521 | #endif |
3522 | return SWIG_OK(0); |
3523 | } else { |
3524 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3525 | if (pchar_descriptor) { |
3526 | void* vptr = 0; |
3527 | if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor , 0, 0) == SWIG_OK(0)) { |
3528 | if (cptr) *cptr = (char *) vptr; |
3529 | if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; |
3530 | if (alloc) *alloc = SWIG_OLDOBJ((0)); |
3531 | return SWIG_OK(0); |
3532 | } |
3533 | } |
3534 | } |
3535 | return SWIG_TypeError-5; |
3536 | } |
3537 | |
3538 | |
3539 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3540 | SWIG_AsPtr_std_string (PyObject * obj, std::string **val) |
3541 | { |
3542 | char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ((0)); |
3543 | if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc) ) >= 0)) { |
3544 | if (buf) { |
3545 | if (val) *val = new std::string(buf, size - 1); |
3546 | if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf; |
3547 | return SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3548 | } else { |
3549 | if (val) *val = 0; |
3550 | return SWIG_OLDOBJ((0)); |
3551 | } |
3552 | } else { |
3553 | static int init = 0; |
3554 | static swig_type_info* descriptor = 0; |
3555 | if (!init) { |
3556 | descriptor = SWIG_TypeQuery("std::string" " *")SWIG_TypeQueryModule(&swig_module, &swig_module, "std::string" " *"); |
3557 | init = 1; |
3558 | } |
3559 | if (descriptor) { |
3560 | std::string *vptr; |
3561 | int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor , 0, 0); |
3562 | if (SWIG_IsOK(res)(res >= 0) && val) *val = vptr; |
3563 | return res; |
3564 | } |
3565 | } |
3566 | return SWIG_ERROR(-1); |
3567 | } |
3568 | |
3569 | |
3570 | #include <limits.h> |
3571 | #if !defined(SWIG_NO_LLONG_MAX) |
3572 | # if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL) |
3573 | # define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL |
3574 | # define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL) |
3575 | # define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL) |
3576 | # endif |
3577 | #endif |
3578 | |
3579 | |
3580 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3581 | SWIG_AsVal_int (PyObject * obj, int *val) |
3582 | { |
3583 | long v; |
3584 | int res = SWIG_AsVal_long (obj, &v); |
3585 | if (SWIG_IsOK(res)(res >= 0)) { |
3586 | if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) { |
3587 | return SWIG_OverflowError-7; |
3588 | } else { |
3589 | if (val) *val = static_cast< int >(v); |
3590 | } |
3591 | } |
3592 | return res; |
3593 | } |
3594 | |
3595 | |
3596 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3597 | SWIG_From_int (int value) |
3598 | { |
3599 | return PyInt_FromLong((long) value); |
3600 | } |
3601 | |
3602 | |
3603 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3604 | SWIG_FromCharPtrAndSize(const char* carray, size_t size) |
3605 | { |
3606 | if (carray) { |
3607 | if (size > INT_MAX2147483647) { |
3608 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3609 | return pchar_descriptor ? |
3610 | SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >( carray), pchar_descriptor, 0) : SWIG_Py_Void(); |
3611 | } else { |
3612 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3613 | return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size)); |
3614 | #else |
3615 | return PyString_FromStringAndSize(carray, static_cast< int >(size)); |
3616 | #endif |
3617 | } |
3618 | } else { |
3619 | return SWIG_Py_Void(); |
3620 | } |
3621 | } |
3622 | |
3623 | |
3624 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3625 | SWIG_From_std_string (const std::string& s) |
3626 | { |
3627 | return SWIG_FromCharPtrAndSize(s.data(), s.size()); |
3628 | } |
3629 | |
3630 | |
3631 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3632 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
3633 | { |
3634 | int r = PyObject_IsTrue(obj); |
3635 | if (r == -1) |
3636 | return SWIG_ERROR(-1); |
3637 | if (val) *val = r ? true : false; |
3638 | return SWIG_OK(0); |
3639 | } |
3640 | |
3641 | SWIGINTERNstatic __attribute__ ((__unused__)) GTestSuite *GTestSuites___getitem__(GTestSuites *self,int const &index){ |
3642 | if (index >= 0 && index < self->size()) { |
3643 | return (*self)[index]; |
3644 | } |
3645 | else { |
3646 | throw GException::out_of_range("__getitem__(int)", index, self->size()); |
3647 | } |
3648 | } |
3649 | SWIGINTERNstatic __attribute__ ((__unused__)) void GTestSuites___setitem__(GTestSuites *self,int const &index,GTestSuite const &suite){ |
3650 | if (index >= 0 && index < self->size()) { |
3651 | self->set(index, suite); |
3652 | return; |
3653 | } |
3654 | else { |
3655 | throw GException::out_of_range("__setitem__(int)", index, self->size()); |
3656 | } |
3657 | } |
3658 | SWIGINTERNstatic __attribute__ ((__unused__)) GTestSuites GTestSuites_copy(GTestSuites *self){ |
3659 | return (*self); |
3660 | } |
3661 | |
3662 | /* Put headers and other declarations here that are needed for compilation */ |
3663 | #include "GTestSuite.hpp" |
3664 | #include "GTools.hpp" |
3665 | #include "GException.hpp" |
3666 | |
3667 | |
3668 | /***********************************************************************//** |
3669 | * @class GPythonException |
3670 | * |
3671 | * @brief Exception for Python tests |
3672 | * |
3673 | * This class implements an exception for the Python tests. It allows to |
3674 | * catch any error message that occurs during Python unit testing. |
3675 | ***************************************************************************/ |
3676 | class GPythonException : public GExceptionHandler { |
3677 | public: |
3678 | class test_error : public GExceptionHandler { |
3679 | public: |
3680 | test_error(const std::string& origin) { |
3681 | |
3682 | // Set origin and default message |
3683 | m_origin = origin; |
3684 | m_message = ""; |
3685 | |
3686 | // Set message |
3687 | if (PyErr_Occurred()) { |
3688 | |
3689 | // Fetch error type, value and traceback |
3690 | PyObject *type = 0; |
3691 | PyObject *value = 0; |
3692 | PyObject *traceback = 0; |
3693 | PyErr_Fetch(&type, &value, &traceback); |
3694 | |
3695 | // Clear error message |
3696 | PyErr_Clear(); |
3697 | |
3698 | // Extract message strings |
3699 | PyObject *py_type = PyObject_Str(type); |
3700 | PyObject *py_value = PyObject_Str(value); |
3701 | char *c_type = PyString_AsString(py_type); |
3702 | char *c_value = PyString_AsString(py_value); |
3703 | m_message += std::string(c_type); |
3704 | m_message += "\n"; |
3705 | m_message += std::string(c_value); |
3706 | Py_DECREF(py_type)do { if ( --((PyObject*)(py_type))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(py_type)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(py_type)))); } while (0); |
3707 | Py_DECREF(py_value)do { if ( --((PyObject*)(py_value))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(py_value)))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(py_value)))); } while ( 0); |
3708 | } |
3709 | } |
3710 | }; |
3711 | }; |
3712 | |
3713 | |
3714 | /***********************************************************************//** |
3715 | * @class GPythonTestSuite |
3716 | * |
3717 | * @brief Test suite for Python tests |
3718 | * |
3719 | * This is the test suite that should be used for Python tests. It derives |
3720 | * from the abstract GTestSuite base class and implements a generic test |
3721 | * method that is used as callback for Python testing. The class keeps an |
3722 | * array of PyObject pointers that is used to call the Python callbacks. |
3723 | * The generic test method profits from the fact that the function index is |
3724 | * a class member, hence the test method knows which Python callback function |
3725 | * it should execute. |
3726 | ***************************************************************************/ |
3727 | class GPythonTestSuite : public GTestSuite { |
3728 | public: |
3729 | // Constructor |
3730 | GPythonTestSuite(void) { |
3731 | m_py_objects.clear(); |
3732 | } |
3733 | |
3734 | // Destructor |
3735 | virtual ~GPythonTestSuite(void) { |
3736 | for (size_t i = 0; i < m_py_objects.size(); ++i) { |
3737 | Py_DECREF(m_py_objects[i])do { if ( --((PyObject*)(m_py_objects[i]))->ob_refcnt != 0 ) ; else ( (*(((PyObject*)((PyObject *)(m_py_objects[i])))-> ob_type)->tp_dealloc)((PyObject *)((PyObject *)(m_py_objects [i])))); } while (0); |
3738 | } |
3739 | } |
3740 | |
3741 | // Dummy set method (implementation makes this class non-abstract) |
3742 | void set(void) { |
3743 | } |
3744 | |
3745 | // Clone method |
3746 | GPythonTestSuite* clone(void) const { |
3747 | return new GPythonTestSuite(*this); |
3748 | } |
3749 | |
3750 | // Generic test function for Python callback |
3751 | void test(void) { |
3752 | PyObject* args = Py_BuildValue("()"); |
3753 | PyObject* func = static_cast<PyObject*>(m_py_objects[m_index]); |
3754 | PyObject* res = PyEval_CallObject(func, args)PyEval_CallObjectWithKeywords(func, args, (PyObject *)__null); |
3755 | Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(args)))); } while (0); |
3756 | if (res == NULL__null) { |
3757 | throw GPythonException::test_error("GPythonTestSuite::test"); |
3758 | } |
3759 | else { |
3760 | Py_DECREF(res)do { if ( --((PyObject*)(res))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(res)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(res)))); } while (0); |
3761 | } |
3762 | return; |
3763 | } |
3764 | |
3765 | // Append Python callback to function lists |
3766 | void append(PyObject* function, const std::string& name) { |
3767 | m_py_objects.push_back(function); |
3768 | Py_INCREF(function)( ((PyObject*)(function))->ob_refcnt++); |
3769 | this->GTestSuite::append(static_cast<pfunction>(&GPythonTestSuite::test), |
3770 | name); |
3771 | } |
3772 | std::vector<PyObject*> m_py_objects; //!< Python callback function list |
3773 | }; |
3774 | |
3775 | |
3776 | #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble |
3777 | |
3778 | SWIGINTERNstatic __attribute__ ((__unused__)) GTestCase >estSuite___getitem__(GTestSuite *self,int const &index){ |
3779 | if (index >= 0 && index < self->size()) { |
3780 | return (*self)[index]; |
3781 | } |
3782 | else { |
3783 | throw GException::out_of_range("__getitem__(int)", index, self->size()); |
3784 | } |
3785 | } |
3786 | SWIGINTERNstatic __attribute__ ((__unused__)) void GTestSuite___setitem__(GTestSuite *self,int const &index,GTestCase const &val){ |
3787 | if (index>=0 && index < self->size()) { |
3788 | (*self)[index] = val; |
3789 | return; |
3790 | } |
3791 | else { |
3792 | throw GException::out_of_range("__setitem__(int)", index, self->size()); |
3793 | } |
3794 | } |
3795 | |
3796 | /* Put headers and other declarations here that are needed for compilation */ |
3797 | #include "GTestCase.hpp" |
3798 | |
3799 | SWIGINTERNstatic __attribute__ ((__unused__)) GTestCase GTestCase_copy(GTestCase *self){ |
3800 | return (*self); |
3801 | } |
3802 | #ifdef __cplusplus199711L |
3803 | extern "C" { |
3804 | #endif |
3805 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3806 | PyObject *resultobj = 0; |
3807 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3808 | void *argp1 = 0 ; |
3809 | int res1 = 0 ; |
3810 | PyObject * obj0 = 0 ; |
3811 | |
3812 | if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail; |
3813 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0x1 | 0, 0); |
3814 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
3816 | } |
3817 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3818 | delete arg1; |
3819 | resultobj = SWIG_Py_Void(); |
3820 | return resultobj; |
3821 | fail: |
3822 | return NULL__null; |
3823 | } |
3824 | |
3825 | |
3826 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3827 | PyObject *resultobj = 0; |
3828 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3829 | void *argp1 = 0 ; |
3830 | int res1 = 0 ; |
3831 | PyObject * obj0 = 0 ; |
3832 | PyObject *result = 0 ; |
3833 | |
3834 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail; |
3835 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
3836 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
3838 | } |
3839 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3840 | try { |
3841 | result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value(); |
3842 | } |
3843 | catch(swig::stop_iteration &_e) { |
3844 | { |
3845 | (void)_e; |
3846 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3847 | SWIG_failgoto fail; |
3848 | } |
3849 | } |
3850 | |
3851 | resultobj = result; |
3852 | return resultobj; |
3853 | fail: |
3854 | return NULL__null; |
3855 | } |
3856 | |
3857 | |
3858 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3859 | PyObject *resultobj = 0; |
3860 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3861 | size_t arg2 ; |
3862 | void *argp1 = 0 ; |
3863 | int res1 = 0 ; |
3864 | size_t val2 ; |
3865 | int ecode2 = 0 ; |
3866 | PyObject * obj0 = 0 ; |
3867 | PyObject * obj1 = 0 ; |
3868 | swig::SwigPyIterator *result = 0 ; |
3869 | |
3870 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail; |
3871 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
3872 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
3874 | } |
3875 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3876 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
3877 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
3878 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'"); goto fail; } while(0); |
3879 | } |
3880 | arg2 = static_cast< size_t >(val2); |
3881 | try { |
3882 | result = (swig::SwigPyIterator *)(arg1)->incr(arg2); |
3883 | } |
3884 | catch(swig::stop_iteration &_e) { |
3885 | { |
3886 | (void)_e; |
3887 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3888 | SWIG_failgoto fail; |
3889 | } |
3890 | } |
3891 | |
3892 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0 | 0); |
3893 | return resultobj; |
3894 | fail: |
3895 | return NULL__null; |
3896 | } |
3897 | |
3898 | |
3899 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3900 | PyObject *resultobj = 0; |
3901 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3902 | void *argp1 = 0 ; |
3903 | int res1 = 0 ; |
3904 | PyObject * obj0 = 0 ; |
3905 | swig::SwigPyIterator *result = 0 ; |
3906 | |
3907 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail; |
3908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
3909 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
3911 | } |
3912 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3913 | try { |
3914 | result = (swig::SwigPyIterator *)(arg1)->incr(); |
3915 | } |
3916 | catch(swig::stop_iteration &_e) { |
3917 | { |
3918 | (void)_e; |
3919 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3920 | SWIG_failgoto fail; |
3921 | } |
3922 | } |
3923 | |
3924 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0 | 0); |
3925 | return resultobj; |
3926 | fail: |
3927 | return NULL__null; |
3928 | } |
3929 | |
3930 | |
3931 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { |
3932 | int argc; |
3933 | PyObject *argv[3]; |
3934 | int ii; |
3935 | |
3936 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
3937 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
3938 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
3939 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
3940 | } |
3941 | if (argc == 1) { |
3942 | int _v; |
3943 | void *vptr = 0; |
3944 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
3945 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3946 | if (_v) { |
3947 | return _wrap_SwigPyIterator_incr__SWIG_1(self, args); |
3948 | } |
3949 | } |
3950 | if (argc == 2) { |
3951 | int _v; |
3952 | void *vptr = 0; |
3953 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
3954 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3955 | if (_v) { |
3956 | { |
3957 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
3958 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3959 | } |
3960 | if (_v) { |
3961 | return _wrap_SwigPyIterator_incr__SWIG_0(self, args); |
3962 | } |
3963 | } |
3964 | } |
3965 | |
3966 | fail: |
3967 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n" |
3968 | " Possible C/C++ prototypes are:\n" |
3969 | " swig::SwigPyIterator::incr(size_t)\n" |
3970 | " swig::SwigPyIterator::incr()\n"); |
3971 | return 0; |
3972 | } |
3973 | |
3974 | |
3975 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3976 | PyObject *resultobj = 0; |
3977 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3978 | size_t arg2 ; |
3979 | void *argp1 = 0 ; |
3980 | int res1 = 0 ; |
3981 | size_t val2 ; |
3982 | int ecode2 = 0 ; |
3983 | PyObject * obj0 = 0 ; |
3984 | PyObject * obj1 = 0 ; |
3985 | swig::SwigPyIterator *result = 0 ; |
3986 | |
3987 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail; |
3988 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
3989 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
3991 | } |
3992 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3993 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
3994 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
3995 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'"); goto fail; } while(0); |
3996 | } |
3997 | arg2 = static_cast< size_t >(val2); |
3998 | try { |
3999 | result = (swig::SwigPyIterator *)(arg1)->decr(arg2); |
4000 | } |
4001 | catch(swig::stop_iteration &_e) { |
4002 | { |
4003 | (void)_e; |
4004 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4005 | SWIG_failgoto fail; |
4006 | } |
4007 | } |
4008 | |
4009 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0 | 0); |
4010 | return resultobj; |
4011 | fail: |
4012 | return NULL__null; |
4013 | } |
4014 | |
4015 | |
4016 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4017 | PyObject *resultobj = 0; |
4018 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4019 | void *argp1 = 0 ; |
4020 | int res1 = 0 ; |
4021 | PyObject * obj0 = 0 ; |
4022 | swig::SwigPyIterator *result = 0 ; |
4023 | |
4024 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail; |
4025 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4026 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4028 | } |
4029 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4030 | try { |
4031 | result = (swig::SwigPyIterator *)(arg1)->decr(); |
4032 | } |
4033 | catch(swig::stop_iteration &_e) { |
4034 | { |
4035 | (void)_e; |
4036 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4037 | SWIG_failgoto fail; |
4038 | } |
4039 | } |
4040 | |
4041 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0 | 0); |
4042 | return resultobj; |
4043 | fail: |
4044 | return NULL__null; |
4045 | } |
4046 | |
4047 | |
4048 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { |
4049 | int argc; |
4050 | PyObject *argv[3]; |
4051 | int ii; |
4052 | |
4053 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4054 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4055 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4056 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4057 | } |
4058 | if (argc == 1) { |
4059 | int _v; |
4060 | void *vptr = 0; |
4061 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
4062 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4063 | if (_v) { |
4064 | return _wrap_SwigPyIterator_decr__SWIG_1(self, args); |
4065 | } |
4066 | } |
4067 | if (argc == 2) { |
4068 | int _v; |
4069 | void *vptr = 0; |
4070 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
4071 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4072 | if (_v) { |
4073 | { |
4074 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
4075 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4076 | } |
4077 | if (_v) { |
4078 | return _wrap_SwigPyIterator_decr__SWIG_0(self, args); |
4079 | } |
4080 | } |
4081 | } |
4082 | |
4083 | fail: |
4084 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n" |
4085 | " Possible C/C++ prototypes are:\n" |
4086 | " swig::SwigPyIterator::decr(size_t)\n" |
4087 | " swig::SwigPyIterator::decr()\n"); |
4088 | return 0; |
4089 | } |
4090 | |
4091 | |
4092 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4093 | PyObject *resultobj = 0; |
4094 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4095 | swig::SwigPyIterator *arg2 = 0 ; |
4096 | void *argp1 = 0 ; |
4097 | int res1 = 0 ; |
4098 | void *argp2 = 0 ; |
4099 | int res2 = 0 ; |
4100 | PyObject * obj0 = 0 ; |
4101 | PyObject * obj1 = 0 ; |
4102 | ptrdiff_t result; |
4103 | |
4104 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail; |
4105 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4106 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4108 | } |
4109 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4110 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11] , 0 | 0, 0); |
4111 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4112 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0); |
4113 | } |
4114 | if (!argp2) { |
4115 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0 ); |
4116 | } |
4117 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4118 | try { |
4119 | result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2); |
4120 | } |
4121 | catch(std::invalid_argument &_e) { |
4122 | SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[ 10]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[10], 0x1)); SWIG_failgoto fail; |
4123 | } |
4124 | |
4125 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4126 | return resultobj; |
4127 | fail: |
4128 | return NULL__null; |
4129 | } |
4130 | |
4131 | |
4132 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4133 | PyObject *resultobj = 0; |
4134 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4135 | swig::SwigPyIterator *arg2 = 0 ; |
4136 | void *argp1 = 0 ; |
4137 | int res1 = 0 ; |
4138 | void *argp2 = 0 ; |
4139 | int res2 = 0 ; |
4140 | PyObject * obj0 = 0 ; |
4141 | PyObject * obj1 = 0 ; |
4142 | bool result; |
4143 | |
4144 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail; |
4145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4146 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4148 | } |
4149 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4150 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11] , 0 | 0, 0); |
4151 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4152 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0); |
4153 | } |
4154 | if (!argp2) { |
4155 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0 ); |
4156 | } |
4157 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4158 | try { |
4159 | result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2); |
4160 | } |
4161 | catch(std::invalid_argument &_e) { |
4162 | SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(swig_types[ 10]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[10], 0x1)); SWIG_failgoto fail; |
4163 | } |
4164 | |
4165 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4166 | return resultobj; |
4167 | fail: |
4168 | return NULL__null; |
4169 | } |
4170 | |
4171 | |
4172 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4173 | PyObject *resultobj = 0; |
4174 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4175 | void *argp1 = 0 ; |
4176 | int res1 = 0 ; |
4177 | PyObject * obj0 = 0 ; |
4178 | swig::SwigPyIterator *result = 0 ; |
4179 | |
4180 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail; |
4181 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4182 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4184 | } |
4185 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4186 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy(); |
4187 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0x1 | 0); |
4188 | return resultobj; |
4189 | fail: |
4190 | return NULL__null; |
4191 | } |
4192 | |
4193 | |
4194 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4195 | PyObject *resultobj = 0; |
4196 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4197 | void *argp1 = 0 ; |
4198 | int res1 = 0 ; |
4199 | PyObject * obj0 = 0 ; |
4200 | PyObject *result = 0 ; |
4201 | |
4202 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail; |
4203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4204 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4206 | } |
4207 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4208 | try { |
4209 | result = (PyObject *)(arg1)->next(); |
4210 | } |
4211 | catch(swig::stop_iteration &_e) { |
4212 | { |
4213 | (void)_e; |
4214 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4215 | SWIG_failgoto fail; |
4216 | } |
4217 | } |
4218 | |
4219 | resultobj = result; |
4220 | return resultobj; |
4221 | fail: |
4222 | return NULL__null; |
4223 | } |
4224 | |
4225 | |
4226 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4227 | PyObject *resultobj = 0; |
4228 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4229 | void *argp1 = 0 ; |
4230 | int res1 = 0 ; |
4231 | PyObject * obj0 = 0 ; |
4232 | PyObject *result = 0 ; |
4233 | |
4234 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail; |
4235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4236 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4238 | } |
4239 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4240 | try { |
4241 | result = (PyObject *)(arg1)->__next__(); |
4242 | } |
4243 | catch(swig::stop_iteration &_e) { |
4244 | { |
4245 | (void)_e; |
4246 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4247 | SWIG_failgoto fail; |
4248 | } |
4249 | } |
4250 | |
4251 | resultobj = result; |
4252 | return resultobj; |
4253 | fail: |
4254 | return NULL__null; |
4255 | } |
4256 | |
4257 | |
4258 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4259 | PyObject *resultobj = 0; |
4260 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4261 | void *argp1 = 0 ; |
4262 | int res1 = 0 ; |
4263 | PyObject * obj0 = 0 ; |
4264 | PyObject *result = 0 ; |
4265 | |
4266 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail; |
4267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4268 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4270 | } |
4271 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4272 | try { |
4273 | result = (PyObject *)(arg1)->previous(); |
4274 | } |
4275 | catch(swig::stop_iteration &_e) { |
4276 | { |
4277 | (void)_e; |
4278 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4279 | SWIG_failgoto fail; |
4280 | } |
4281 | } |
4282 | |
4283 | resultobj = result; |
4284 | return resultobj; |
4285 | fail: |
4286 | return NULL__null; |
4287 | } |
4288 | |
4289 | |
4290 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4291 | PyObject *resultobj = 0; |
4292 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4293 | ptrdiff_t arg2 ; |
4294 | void *argp1 = 0 ; |
4295 | int res1 = 0 ; |
4296 | ptrdiff_t val2 ; |
4297 | int ecode2 = 0 ; |
4298 | PyObject * obj0 = 0 ; |
4299 | PyObject * obj1 = 0 ; |
4300 | swig::SwigPyIterator *result = 0 ; |
4301 | |
4302 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail; |
4303 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4304 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4306 | } |
4307 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4308 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4309 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4310 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0); |
4311 | } |
4312 | arg2 = static_cast< ptrdiff_t >(val2); |
4313 | try { |
4314 | result = (swig::SwigPyIterator *)(arg1)->advance(arg2); |
4315 | } |
4316 | catch(swig::stop_iteration &_e) { |
4317 | { |
4318 | (void)_e; |
4319 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4320 | SWIG_failgoto fail; |
4321 | } |
4322 | } |
4323 | |
4324 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0 | 0); |
4325 | return resultobj; |
4326 | fail: |
4327 | return NULL__null; |
4328 | } |
4329 | |
4330 | |
4331 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4332 | PyObject *resultobj = 0; |
4333 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4334 | swig::SwigPyIterator *arg2 = 0 ; |
4335 | void *argp1 = 0 ; |
4336 | int res1 = 0 ; |
4337 | void *argp2 = 0 ; |
4338 | int res2 = 0 ; |
4339 | PyObject * obj0 = 0 ; |
4340 | PyObject * obj1 = 0 ; |
4341 | bool result; |
4342 | |
4343 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail; |
4344 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4345 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4347 | } |
4348 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4349 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11] , 0 | 0, 0); |
4350 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4351 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0); |
4352 | } |
4353 | if (!argp2) { |
4354 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0 ); |
4355 | } |
4356 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4357 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2); |
4358 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4359 | return resultobj; |
4360 | fail: |
4361 | return NULL__null; |
4362 | } |
4363 | |
4364 | |
4365 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4366 | PyObject *resultobj = 0; |
4367 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4368 | swig::SwigPyIterator *arg2 = 0 ; |
4369 | void *argp1 = 0 ; |
4370 | int res1 = 0 ; |
4371 | void *argp2 = 0 ; |
4372 | int res2 = 0 ; |
4373 | PyObject * obj0 = 0 ; |
4374 | PyObject * obj1 = 0 ; |
4375 | bool result; |
4376 | |
4377 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail; |
4378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4379 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4381 | } |
4382 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4383 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11] , 0 | 0, 0); |
4384 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4385 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0); |
4386 | } |
4387 | if (!argp2) { |
4388 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0 ); |
4389 | } |
4390 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4391 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2); |
4392 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4393 | return resultobj; |
4394 | fail: |
4395 | return NULL__null; |
4396 | } |
4397 | |
4398 | |
4399 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4400 | PyObject *resultobj = 0; |
4401 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4402 | ptrdiff_t arg2 ; |
4403 | void *argp1 = 0 ; |
4404 | int res1 = 0 ; |
4405 | ptrdiff_t val2 ; |
4406 | int ecode2 = 0 ; |
4407 | PyObject * obj0 = 0 ; |
4408 | PyObject * obj1 = 0 ; |
4409 | swig::SwigPyIterator *result = 0 ; |
4410 | |
4411 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail; |
4412 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0x1 | 0, 0); |
4413 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4415 | } |
4416 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4417 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4418 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4419 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0); |
4420 | } |
4421 | arg2 = static_cast< ptrdiff_t >(val2); |
4422 | try { |
4423 | result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2); |
4424 | } |
4425 | catch(swig::stop_iteration &_e) { |
4426 | { |
4427 | (void)_e; |
4428 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4429 | SWIG_failgoto fail; |
4430 | } |
4431 | } |
4432 | |
4433 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0x1 | 0); |
4434 | return resultobj; |
4435 | fail: |
4436 | return NULL__null; |
4437 | } |
4438 | |
4439 | |
4440 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4441 | PyObject *resultobj = 0; |
4442 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4443 | ptrdiff_t arg2 ; |
4444 | void *argp1 = 0 ; |
4445 | int res1 = 0 ; |
4446 | ptrdiff_t val2 ; |
4447 | int ecode2 = 0 ; |
4448 | PyObject * obj0 = 0 ; |
4449 | PyObject * obj1 = 0 ; |
4450 | swig::SwigPyIterator *result = 0 ; |
4451 | |
4452 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail; |
4453 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0x1 | 0, 0); |
4454 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); goto fail; } while (0); |
4456 | } |
4457 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4458 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4459 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4460 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0); |
4461 | } |
4462 | arg2 = static_cast< ptrdiff_t >(val2); |
4463 | try { |
4464 | result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2); |
4465 | } |
4466 | catch(swig::stop_iteration &_e) { |
4467 | { |
4468 | (void)_e; |
4469 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4470 | SWIG_failgoto fail; |
4471 | } |
4472 | } |
4473 | |
4474 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0x1 | 0); |
4475 | return resultobj; |
4476 | fail: |
4477 | return NULL__null; |
4478 | } |
4479 | |
4480 | |
4481 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4482 | PyObject *resultobj = 0; |
4483 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4484 | ptrdiff_t arg2 ; |
4485 | void *argp1 = 0 ; |
4486 | int res1 = 0 ; |
4487 | ptrdiff_t val2 ; |
4488 | int ecode2 = 0 ; |
4489 | PyObject * obj0 = 0 ; |
4490 | PyObject * obj1 = 0 ; |
4491 | swig::SwigPyIterator *result = 0 ; |
4492 | |
4493 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail; |
4494 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4495 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4497 | } |
4498 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4499 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4500 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4501 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0); |
4502 | } |
4503 | arg2 = static_cast< ptrdiff_t >(val2); |
4504 | try { |
4505 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2); |
4506 | } |
4507 | catch(swig::stop_iteration &_e) { |
4508 | { |
4509 | (void)_e; |
4510 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4511 | SWIG_failgoto fail; |
4512 | } |
4513 | } |
4514 | |
4515 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0x1 | 0); |
4516 | return resultobj; |
4517 | fail: |
4518 | return NULL__null; |
4519 | } |
4520 | |
4521 | |
4522 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4523 | PyObject *resultobj = 0; |
4524 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4525 | ptrdiff_t arg2 ; |
4526 | void *argp1 = 0 ; |
4527 | int res1 = 0 ; |
4528 | ptrdiff_t val2 ; |
4529 | int ecode2 = 0 ; |
4530 | PyObject * obj0 = 0 ; |
4531 | PyObject * obj1 = 0 ; |
4532 | swig::SwigPyIterator *result = 0 ; |
4533 | |
4534 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4536 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4538 | } |
4539 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4540 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4541 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4542 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'"); goto fail; } while(0); |
4543 | } |
4544 | arg2 = static_cast< ptrdiff_t >(val2); |
4545 | try { |
4546 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2); |
4547 | } |
4548 | catch(swig::stop_iteration &_e) { |
4549 | { |
4550 | (void)_e; |
4551 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4552 | SWIG_failgoto fail; |
4553 | } |
4554 | } |
4555 | |
4556 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0x1 | 0); |
4557 | return resultobj; |
4558 | fail: |
4559 | return NULL__null; |
4560 | } |
4561 | |
4562 | |
4563 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4564 | PyObject *resultobj = 0; |
4565 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4566 | swig::SwigPyIterator *arg2 = 0 ; |
4567 | void *argp1 = 0 ; |
4568 | int res1 = 0 ; |
4569 | void *argp2 = 0 ; |
4570 | int res2 = 0 ; |
4571 | PyObject * obj0 = 0 ; |
4572 | PyObject * obj1 = 0 ; |
4573 | ptrdiff_t result; |
4574 | |
4575 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4577 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); goto fail ; } while(0); |
4579 | } |
4580 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4581 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11] , 0 | 0, 0); |
4582 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4583 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0); |
4584 | } |
4585 | if (!argp2) { |
4586 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); goto fail; } while(0 ); |
4587 | } |
4588 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4589 | result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2); |
4590 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4591 | return resultobj; |
4592 | fail: |
4593 | return NULL__null; |
4594 | } |
4595 | |
4596 | |
4597 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { |
4598 | int argc; |
4599 | PyObject *argv[3]; |
4600 | int ii; |
4601 | |
4602 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4603 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4604 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4605 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4606 | } |
4607 | if (argc == 2) { |
4608 | int _v; |
4609 | void *vptr = 0; |
4610 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
4611 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4612 | if (_v) { |
4613 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[11], 0, 0 ); |
4614 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4615 | if (_v) { |
4616 | return _wrap_SwigPyIterator___sub____SWIG_1(self, args); |
4617 | } |
4618 | } |
4619 | } |
4620 | if (argc == 2) { |
4621 | int _v; |
4622 | void *vptr = 0; |
4623 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
4624 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4625 | if (_v) { |
4626 | { |
4627 | int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null); |
4628 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4629 | } |
4630 | if (_v) { |
4631 | return _wrap_SwigPyIterator___sub____SWIG_0(self, args); |
4632 | } |
4633 | } |
4634 | } |
4635 | |
4636 | fail: |
4637 | Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt ++); |
4638 | return Py_NotImplemented(&_Py_NotImplementedStruct); |
4639 | } |
4640 | |
4641 | |
4642 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4643 | PyObject *obj; |
4644 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
4645 | SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[11], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
4646 | return SWIG_Py_Void(); |
4647 | } |
4648 | |
4649 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTestSuites__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4650 | PyObject *resultobj = 0; |
4651 | GTestSuites *result = 0 ; |
4652 | |
4653 | if (!PyArg_ParseTuple(args,(char *)":new_GTestSuites")) SWIG_failgoto fail; |
4654 | { |
4655 | try { |
4656 | result = (GTestSuites *)new GTestSuites(); |
4657 | } |
4658 | catch (const GException::out_of_range& e) { |
4659 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4660 | } |
4661 | catch (const GExceptionHandler& e) { |
4662 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4663 | } |
4664 | catch (const std::exception& e) { |
4665 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4666 | } |
4667 | } |
4668 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestSuites, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
4669 | return resultobj; |
4670 | fail: |
4671 | return NULL__null; |
4672 | } |
4673 | |
4674 | |
4675 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTestSuites__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4676 | PyObject *resultobj = 0; |
4677 | GTestSuites *arg1 = 0 ; |
4678 | void *argp1 = 0 ; |
4679 | int res1 = 0 ; |
4680 | PyObject * obj0 = 0 ; |
4681 | GTestSuites *result = 0 ; |
4682 | |
4683 | if (!PyArg_ParseTuple(args,(char *)"O:new_GTestSuites",&obj0)) SWIG_failgoto fail; |
4684 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GTestSuites, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
4685 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GTestSuites" "', argument " "1"" of type '" "GTestSuites const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GTestSuites" "', argument " "1"" of type '" "GTestSuites const &""'"); goto fail; } while (0); |
4687 | } |
4688 | if (!argp1) { |
4689 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTestSuites" "', argument " "1"" of type '" "GTestSuites const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GTestSuites" "', argument " "1"" of type '" "GTestSuites const &""'"); goto fail; } while(0); |
4690 | } |
4691 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
4692 | { |
4693 | try { |
4694 | result = (GTestSuites *)new GTestSuites((GTestSuites const &)*arg1); |
4695 | } |
4696 | catch (const GException::out_of_range& e) { |
4697 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4698 | } |
4699 | catch (const GExceptionHandler& e) { |
4700 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4701 | } |
4702 | catch (const std::exception& e) { |
4703 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4704 | } |
4705 | } |
4706 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestSuites, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
4707 | return resultobj; |
4708 | fail: |
4709 | return NULL__null; |
4710 | } |
4711 | |
4712 | |
4713 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTestSuites__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4714 | PyObject *resultobj = 0; |
4715 | std::string *arg1 = 0 ; |
4716 | int res1 = SWIG_OLDOBJ((0)) ; |
4717 | PyObject * obj0 = 0 ; |
4718 | GTestSuites *result = 0 ; |
4719 | |
4720 | if (!PyArg_ParseTuple(args,(char *)"O:new_GTestSuites",&obj0)) SWIG_failgoto fail; |
4721 | { |
4722 | std::string *ptr = (std::string *)0; |
4723 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
4724 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GTestSuites" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GTestSuites" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
4726 | } |
4727 | if (!ptr) { |
4728 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTestSuites" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GTestSuites" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
4729 | } |
4730 | arg1 = ptr; |
4731 | } |
4732 | { |
4733 | try { |
4734 | result = (GTestSuites *)new GTestSuites((std::string const &)*arg1); |
4735 | } |
4736 | catch (const GException::out_of_range& e) { |
4737 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4738 | } |
4739 | catch (const GExceptionHandler& e) { |
4740 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4741 | } |
4742 | catch (const std::exception& e) { |
4743 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4744 | } |
4745 | } |
4746 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestSuites, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
4747 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4748 | return resultobj; |
4749 | fail: |
4750 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4751 | return NULL__null; |
4752 | } |
4753 | |
4754 | |
4755 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTestSuites(PyObject *self, PyObject *args) { |
4756 | int argc; |
4757 | PyObject *argv[2]; |
4758 | int ii; |
4759 | |
4760 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4761 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4762 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
4763 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4764 | } |
4765 | if (argc == 0) { |
4766 | return _wrap_new_GTestSuites__SWIG_0(self, args); |
4767 | } |
4768 | if (argc == 1) { |
4769 | int _v; |
4770 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GTestSuites, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[7], 0, 0); |
4771 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4772 | if (_v) { |
4773 | return _wrap_new_GTestSuites__SWIG_1(self, args); |
4774 | } |
4775 | } |
4776 | if (argc == 1) { |
4777 | int _v; |
4778 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
4779 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4780 | if (_v) { |
4781 | return _wrap_new_GTestSuites__SWIG_2(self, args); |
4782 | } |
4783 | } |
4784 | |
4785 | fail: |
4786 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GTestSuites'.\n" |
4787 | " Possible C/C++ prototypes are:\n" |
4788 | " GTestSuites::GTestSuites()\n" |
4789 | " GTestSuites::GTestSuites(GTestSuites const &)\n" |
4790 | " GTestSuites::GTestSuites(std::string const &)\n"); |
4791 | return 0; |
4792 | } |
4793 | |
4794 | |
4795 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GTestSuites(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4796 | PyObject *resultobj = 0; |
4797 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
4798 | void *argp1 = 0 ; |
4799 | int res1 = 0 ; |
4800 | PyObject * obj0 = 0 ; |
4801 | |
4802 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GTestSuites",&obj0)) SWIG_failgoto fail; |
4803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0x1 | 0, 0); |
4804 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GTestSuites" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GTestSuites" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
4806 | } |
4807 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
4808 | { |
4809 | try { |
4810 | delete arg1; |
4811 | } |
4812 | catch (const GException::out_of_range& e) { |
4813 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4814 | } |
4815 | catch (const GExceptionHandler& e) { |
4816 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4817 | } |
4818 | catch (const std::exception& e) { |
4819 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4820 | } |
4821 | } |
4822 | resultobj = SWIG_Py_Void(); |
4823 | return resultobj; |
4824 | fail: |
4825 | return NULL__null; |
4826 | } |
4827 | |
4828 | |
4829 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4830 | PyObject *resultobj = 0; |
4831 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
4832 | void *argp1 = 0 ; |
4833 | int res1 = 0 ; |
4834 | PyObject * obj0 = 0 ; |
4835 | |
4836 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuites_clear",&obj0)) SWIG_failgoto fail; |
4837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
4838 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_clear" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_clear" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
4840 | } |
4841 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
4842 | { |
4843 | try { |
4844 | (arg1)->clear(); |
4845 | } |
4846 | catch (const GException::out_of_range& e) { |
4847 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4848 | } |
4849 | catch (const GExceptionHandler& e) { |
4850 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4851 | } |
4852 | catch (const std::exception& e) { |
4853 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4854 | } |
4855 | } |
4856 | resultobj = SWIG_Py_Void(); |
4857 | return resultobj; |
4858 | fail: |
4859 | return NULL__null; |
4860 | } |
4861 | |
4862 | |
4863 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4864 | PyObject *resultobj = 0; |
4865 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
4866 | void *argp1 = 0 ; |
4867 | int res1 = 0 ; |
4868 | PyObject * obj0 = 0 ; |
4869 | GTestSuites *result = 0 ; |
4870 | |
4871 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuites_clone",&obj0)) SWIG_failgoto fail; |
4872 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
4873 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_clone" "', argument " "1"" of type '" "GTestSuites const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_clone" "', argument " "1"" of type '" "GTestSuites const *""'"); goto fail; } while (0); |
4875 | } |
4876 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
4877 | { |
4878 | try { |
4879 | result = (GTestSuites *)((GTestSuites const *)arg1)->clone(); |
4880 | } |
4881 | catch (const GException::out_of_range& e) { |
4882 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4883 | } |
4884 | catch (const GExceptionHandler& e) { |
4885 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4886 | } |
4887 | catch (const std::exception& e) { |
4888 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4889 | } |
4890 | } |
4891 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], 0 | 0); |
4892 | return resultobj; |
4893 | fail: |
4894 | return NULL__null; |
4895 | } |
4896 | |
4897 | |
4898 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4899 | PyObject *resultobj = 0; |
4900 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
4901 | int *arg2 = 0 ; |
4902 | void *argp1 = 0 ; |
4903 | int res1 = 0 ; |
4904 | int temp2 ; |
4905 | int val2 ; |
4906 | int ecode2 = 0 ; |
4907 | PyObject * obj0 = 0 ; |
4908 | PyObject * obj1 = 0 ; |
4909 | GTestSuite *result = 0 ; |
4910 | |
4911 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuites_at",&obj0,&obj1)) SWIG_failgoto fail; |
4912 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
4913 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_at" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_at" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
4915 | } |
4916 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
4917 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
4918 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4919 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuites_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuites_at" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
4920 | } |
4921 | temp2 = static_cast< int >(val2); |
4922 | arg2 = &temp2; |
4923 | { |
4924 | try { |
4925 | result = (GTestSuite *)(arg1)->at((int const &)*arg2); |
4926 | } |
4927 | catch (const GException::out_of_range& e) { |
4928 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4929 | } |
4930 | catch (const GExceptionHandler& e) { |
4931 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4932 | } |
4933 | catch (const std::exception& e) { |
4934 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4935 | } |
4936 | } |
4937 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
4938 | return resultobj; |
4939 | fail: |
4940 | return NULL__null; |
4941 | } |
4942 | |
4943 | |
4944 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4945 | PyObject *resultobj = 0; |
4946 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
4947 | void *argp1 = 0 ; |
4948 | int res1 = 0 ; |
4949 | PyObject * obj0 = 0 ; |
4950 | int result; |
4951 | |
4952 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuites_size",&obj0)) SWIG_failgoto fail; |
4953 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
4954 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_size" "', argument " "1"" of type '" "GTestSuites const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_size" "', argument " "1"" of type '" "GTestSuites const *""'"); goto fail; } while (0); |
4956 | } |
4957 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
4958 | { |
4959 | try { |
4960 | result = (int)((GTestSuites const *)arg1)->size(); |
4961 | } |
4962 | catch (const GException::out_of_range& e) { |
4963 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4964 | } |
4965 | catch (const GExceptionHandler& e) { |
4966 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4967 | } |
4968 | catch (const std::exception& e) { |
4969 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4970 | } |
4971 | } |
4972 | resultobj = SWIG_From_int(static_cast< int >(result)); |
4973 | return resultobj; |
4974 | fail: |
4975 | return NULL__null; |
4976 | } |
4977 | |
4978 | |
4979 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4980 | PyObject *resultobj = 0; |
4981 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
4982 | void *argp1 = 0 ; |
4983 | int res1 = 0 ; |
4984 | PyObject * obj0 = 0 ; |
4985 | bool result; |
4986 | |
4987 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuites_isempty",&obj0)) SWIG_failgoto fail; |
4988 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
4989 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_isempty" "', argument " "1"" of type '" "GTestSuites const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_isempty" "', argument " "1"" of type '" "GTestSuites const *""'"); goto fail; } while (0); |
4991 | } |
4992 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
4993 | { |
4994 | try { |
4995 | result = (bool)((GTestSuites const *)arg1)->isempty(); |
4996 | } |
4997 | catch (const GException::out_of_range& e) { |
4998 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4999 | } |
5000 | catch (const GExceptionHandler& e) { |
5001 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5002 | } |
5003 | catch (const std::exception& e) { |
5004 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5005 | } |
5006 | } |
5007 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5008 | return resultobj; |
5009 | fail: |
5010 | return NULL__null; |
5011 | } |
5012 | |
5013 | |
5014 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5015 | PyObject *resultobj = 0; |
5016 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5017 | int *arg2 = 0 ; |
5018 | GTestSuite *arg3 = 0 ; |
5019 | void *argp1 = 0 ; |
5020 | int res1 = 0 ; |
5021 | int temp2 ; |
5022 | int val2 ; |
5023 | int ecode2 = 0 ; |
5024 | void *argp3 = 0 ; |
5025 | int res3 = 0 ; |
5026 | PyObject * obj0 = 0 ; |
5027 | PyObject * obj1 = 0 ; |
5028 | PyObject * obj2 = 0 ; |
5029 | GTestSuite *result = 0 ; |
5030 | |
5031 | if (!PyArg_ParseTuple(args,(char *)"OOO:GTestSuites_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5033 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_set" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_set" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
5035 | } |
5036 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5037 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5038 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5039 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuites_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuites_set" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
5040 | } |
5041 | temp2 = static_cast< int >(val2); |
5042 | arg2 = &temp2; |
5043 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTestSuite, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6], 0 | 0, 0); |
5044 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
5045 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTestSuites_set" "', argument " "3"" of type '" "GTestSuite const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GTestSuites_set" "', argument " "3"" of type '" "GTestSuite const &""'"); goto fail; } while (0); |
5046 | } |
5047 | if (!argp3) { |
5048 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuites_set" "', argument " "3"" of type '" "GTestSuite const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuites_set" "', argument " "3"" of type '" "GTestSuite const &""'"); goto fail; } while(0); |
5049 | } |
5050 | arg3 = reinterpret_cast< GTestSuite * >(argp3); |
5051 | { |
5052 | try { |
5053 | result = (GTestSuite *)(arg1)->set((int const &)*arg2,(GTestSuite const &)*arg3); |
5054 | } |
5055 | catch (const GException::out_of_range& e) { |
5056 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5057 | } |
5058 | catch (const GExceptionHandler& e) { |
5059 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5060 | } |
5061 | catch (const std::exception& e) { |
5062 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5063 | } |
5064 | } |
5065 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
5066 | return resultobj; |
5067 | fail: |
5068 | return NULL__null; |
5069 | } |
5070 | |
5071 | |
5072 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5073 | PyObject *resultobj = 0; |
5074 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5075 | GTestSuite *arg2 = 0 ; |
5076 | void *argp1 = 0 ; |
5077 | int res1 = 0 ; |
5078 | void *argp2 = 0 ; |
5079 | int res2 = 0 ; |
5080 | PyObject * obj0 = 0 ; |
5081 | PyObject * obj1 = 0 ; |
5082 | GTestSuite *result = 0 ; |
5083 | |
5084 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuites_append",&obj0,&obj1)) SWIG_failgoto fail; |
5085 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5086 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_append" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_append" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
5088 | } |
5089 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5090 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTestSuite, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
5091 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5092 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestSuites_append" "', argument " "2"" of type '" "GTestSuite const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestSuites_append" "', argument " "2"" of type '" "GTestSuite const &""'"); goto fail; } while (0); |
5093 | } |
5094 | if (!argp2) { |
5095 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuites_append" "', argument " "2"" of type '" "GTestSuite const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuites_append" "', argument " "2"" of type '" "GTestSuite const &""'"); goto fail; } while(0); |
5096 | } |
5097 | arg2 = reinterpret_cast< GTestSuite * >(argp2); |
5098 | { |
5099 | try { |
5100 | result = (GTestSuite *)(arg1)->append((GTestSuite const &)*arg2); |
5101 | } |
5102 | catch (const GException::out_of_range& e) { |
5103 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5104 | } |
5105 | catch (const GExceptionHandler& e) { |
5106 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5107 | } |
5108 | catch (const std::exception& e) { |
5109 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5110 | } |
5111 | } |
5112 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
5113 | return resultobj; |
5114 | fail: |
5115 | return NULL__null; |
5116 | } |
5117 | |
5118 | |
5119 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5120 | PyObject *resultobj = 0; |
5121 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5122 | int *arg2 = 0 ; |
5123 | GTestSuite *arg3 = 0 ; |
5124 | void *argp1 = 0 ; |
5125 | int res1 = 0 ; |
5126 | int temp2 ; |
5127 | int val2 ; |
5128 | int ecode2 = 0 ; |
5129 | void *argp3 = 0 ; |
5130 | int res3 = 0 ; |
5131 | PyObject * obj0 = 0 ; |
5132 | PyObject * obj1 = 0 ; |
5133 | PyObject * obj2 = 0 ; |
5134 | GTestSuite *result = 0 ; |
5135 | |
5136 | if (!PyArg_ParseTuple(args,(char *)"OOO:GTestSuites_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5138 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_insert" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_insert" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
5140 | } |
5141 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5142 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5143 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5144 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuites_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuites_insert" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
5145 | } |
5146 | temp2 = static_cast< int >(val2); |
5147 | arg2 = &temp2; |
5148 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTestSuite, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6], 0 | 0, 0); |
5149 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
5150 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTestSuites_insert" "', argument " "3"" of type '" "GTestSuite const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GTestSuites_insert" "', argument " "3"" of type '" "GTestSuite const &""'"); goto fail; } while (0); |
5151 | } |
5152 | if (!argp3) { |
5153 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuites_insert" "', argument " "3"" of type '" "GTestSuite const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuites_insert" "', argument " "3"" of type '" "GTestSuite const &""'"); goto fail; } while(0); |
5154 | } |
5155 | arg3 = reinterpret_cast< GTestSuite * >(argp3); |
5156 | { |
5157 | try { |
5158 | result = (GTestSuite *)(arg1)->insert((int const &)*arg2,(GTestSuite const &)*arg3); |
5159 | } |
5160 | catch (const GException::out_of_range& e) { |
5161 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5162 | } |
5163 | catch (const GExceptionHandler& e) { |
5164 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5165 | } |
5166 | catch (const std::exception& e) { |
5167 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5168 | } |
5169 | } |
5170 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
5171 | return resultobj; |
5172 | fail: |
5173 | return NULL__null; |
5174 | } |
5175 | |
5176 | |
5177 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5178 | PyObject *resultobj = 0; |
5179 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5180 | int *arg2 = 0 ; |
5181 | void *argp1 = 0 ; |
5182 | int res1 = 0 ; |
5183 | int temp2 ; |
5184 | int val2 ; |
5185 | int ecode2 = 0 ; |
5186 | PyObject * obj0 = 0 ; |
5187 | PyObject * obj1 = 0 ; |
5188 | |
5189 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuites_remove",&obj0,&obj1)) SWIG_failgoto fail; |
5190 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5191 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_remove" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_remove" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
5193 | } |
5194 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5195 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5196 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5197 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuites_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuites_remove" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
5198 | } |
5199 | temp2 = static_cast< int >(val2); |
5200 | arg2 = &temp2; |
5201 | { |
5202 | try { |
5203 | (arg1)->remove((int const &)*arg2); |
5204 | } |
5205 | catch (const GException::out_of_range& e) { |
5206 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5207 | } |
5208 | catch (const GExceptionHandler& e) { |
5209 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5210 | } |
5211 | catch (const std::exception& e) { |
5212 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5213 | } |
5214 | } |
5215 | resultobj = SWIG_Py_Void(); |
5216 | return resultobj; |
5217 | fail: |
5218 | return NULL__null; |
5219 | } |
5220 | |
5221 | |
5222 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5223 | PyObject *resultobj = 0; |
5224 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5225 | int *arg2 = 0 ; |
5226 | void *argp1 = 0 ; |
5227 | int res1 = 0 ; |
5228 | int temp2 ; |
5229 | int val2 ; |
5230 | int ecode2 = 0 ; |
5231 | PyObject * obj0 = 0 ; |
5232 | PyObject * obj1 = 0 ; |
5233 | |
5234 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuites_reserve",&obj0,&obj1)) SWIG_failgoto fail; |
5235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5236 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_reserve" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_reserve" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
5238 | } |
5239 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5240 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5241 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5242 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuites_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuites_reserve" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
5243 | } |
5244 | temp2 = static_cast< int >(val2); |
5245 | arg2 = &temp2; |
5246 | { |
5247 | try { |
5248 | (arg1)->reserve((int const &)*arg2); |
5249 | } |
5250 | catch (const GException::out_of_range& e) { |
5251 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5252 | } |
5253 | catch (const GExceptionHandler& e) { |
5254 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5255 | } |
5256 | catch (const std::exception& e) { |
5257 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5258 | } |
5259 | } |
5260 | resultobj = SWIG_Py_Void(); |
5261 | return resultobj; |
5262 | fail: |
5263 | return NULL__null; |
5264 | } |
5265 | |
5266 | |
5267 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5268 | PyObject *resultobj = 0; |
5269 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5270 | GTestSuites *arg2 = 0 ; |
5271 | void *argp1 = 0 ; |
5272 | int res1 = 0 ; |
5273 | void *argp2 = 0 ; |
5274 | int res2 = 0 ; |
5275 | PyObject * obj0 = 0 ; |
5276 | PyObject * obj1 = 0 ; |
5277 | |
5278 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuites_extend",&obj0,&obj1)) SWIG_failgoto fail; |
5279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5280 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_extend" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_extend" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
5282 | } |
5283 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5284 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTestSuites, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
5285 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5286 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestSuites_extend" "', argument " "2"" of type '" "GTestSuites const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestSuites_extend" "', argument " "2"" of type '" "GTestSuites const &""'"); goto fail; } while (0); |
5287 | } |
5288 | if (!argp2) { |
5289 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuites_extend" "', argument " "2"" of type '" "GTestSuites const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuites_extend" "', argument " "2"" of type '" "GTestSuites const &""'"); goto fail; } while(0); |
5290 | } |
5291 | arg2 = reinterpret_cast< GTestSuites * >(argp2); |
5292 | { |
5293 | try { |
5294 | (arg1)->extend((GTestSuites const &)*arg2); |
5295 | } |
5296 | catch (const GException::out_of_range& e) { |
5297 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5298 | } |
5299 | catch (const GExceptionHandler& e) { |
5300 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5301 | } |
5302 | catch (const std::exception& e) { |
5303 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5304 | } |
5305 | } |
5306 | resultobj = SWIG_Py_Void(); |
5307 | return resultobj; |
5308 | fail: |
5309 | return NULL__null; |
5310 | } |
5311 | |
5312 | |
5313 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_name__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5314 | PyObject *resultobj = 0; |
5315 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5316 | void *argp1 = 0 ; |
5317 | int res1 = 0 ; |
5318 | PyObject * obj0 = 0 ; |
5319 | std::string *result = 0 ; |
5320 | |
5321 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuites_name",&obj0)) SWIG_failgoto fail; |
5322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5323 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_name" "', argument " "1"" of type '" "GTestSuites const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_name" "', argument " "1"" of type '" "GTestSuites const *""'"); goto fail; } while (0); |
5325 | } |
5326 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5327 | { |
5328 | try { |
5329 | result = (std::string *) &((GTestSuites const *)arg1)->name(); |
5330 | } |
5331 | catch (const GException::out_of_range& e) { |
5332 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5333 | } |
5334 | catch (const GExceptionHandler& e) { |
5335 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5336 | } |
5337 | catch (const std::exception& e) { |
5338 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5339 | } |
5340 | } |
5341 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
5342 | return resultobj; |
5343 | fail: |
5344 | return NULL__null; |
5345 | } |
5346 | |
5347 | |
5348 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_name__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5349 | PyObject *resultobj = 0; |
5350 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5351 | std::string *arg2 = 0 ; |
5352 | void *argp1 = 0 ; |
5353 | int res1 = 0 ; |
5354 | int res2 = SWIG_OLDOBJ((0)) ; |
5355 | PyObject * obj0 = 0 ; |
5356 | PyObject * obj1 = 0 ; |
5357 | |
5358 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuites_name",&obj0,&obj1)) SWIG_failgoto fail; |
5359 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5360 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_name" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_name" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
5362 | } |
5363 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5364 | { |
5365 | std::string *ptr = (std::string *)0; |
5366 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
5367 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5368 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestSuites_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestSuites_name" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
5369 | } |
5370 | if (!ptr) { |
5371 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuites_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuites_name" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
5372 | } |
5373 | arg2 = ptr; |
5374 | } |
5375 | { |
5376 | try { |
5377 | (arg1)->name((std::string const &)*arg2); |
5378 | } |
5379 | catch (const GException::out_of_range& e) { |
5380 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5381 | } |
5382 | catch (const GExceptionHandler& e) { |
5383 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5384 | } |
5385 | catch (const std::exception& e) { |
5386 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5387 | } |
5388 | } |
5389 | resultobj = SWIG_Py_Void(); |
5390 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5391 | return resultobj; |
5392 | fail: |
5393 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5394 | return NULL__null; |
5395 | } |
5396 | |
5397 | |
5398 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_name(PyObject *self, PyObject *args) { |
5399 | int argc; |
5400 | PyObject *argv[3]; |
5401 | int ii; |
5402 | |
5403 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5404 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5405 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
5406 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5407 | } |
5408 | if (argc == 1) { |
5409 | int _v; |
5410 | void *vptr = 0; |
5411 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuites, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
5412 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5413 | if (_v) { |
5414 | return _wrap_GTestSuites_name__SWIG_0(self, args); |
5415 | } |
5416 | } |
5417 | if (argc == 2) { |
5418 | int _v; |
5419 | void *vptr = 0; |
5420 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuites, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
5421 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5422 | if (_v) { |
5423 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
5424 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5425 | if (_v) { |
5426 | return _wrap_GTestSuites_name__SWIG_1(self, args); |
5427 | } |
5428 | } |
5429 | } |
5430 | |
5431 | fail: |
5432 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTestSuites_name'.\n" |
5433 | " Possible C/C++ prototypes are:\n" |
5434 | " GTestSuites::name() const\n" |
5435 | " GTestSuites::name(std::string const &)\n"); |
5436 | return 0; |
5437 | } |
5438 | |
5439 | |
5440 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_cout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5441 | PyObject *resultobj = 0; |
5442 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5443 | bool *arg2 = 0 ; |
5444 | void *argp1 = 0 ; |
5445 | int res1 = 0 ; |
5446 | bool temp2 ; |
5447 | bool val2 ; |
5448 | int ecode2 = 0 ; |
5449 | PyObject * obj0 = 0 ; |
5450 | PyObject * obj1 = 0 ; |
5451 | |
5452 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuites_cout",&obj0,&obj1)) SWIG_failgoto fail; |
5453 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5454 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_cout" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_cout" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
5456 | } |
5457 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5458 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
5459 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5460 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuites_cout" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuites_cout" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0); |
5461 | } |
5462 | temp2 = static_cast< bool >(val2); |
5463 | arg2 = &temp2; |
5464 | { |
5465 | try { |
5466 | (arg1)->cout((bool const &)*arg2); |
5467 | } |
5468 | catch (const GException::out_of_range& e) { |
5469 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5470 | } |
5471 | catch (const GExceptionHandler& e) { |
5472 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5473 | } |
5474 | catch (const std::exception& e) { |
5475 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5476 | } |
5477 | } |
5478 | resultobj = SWIG_Py_Void(); |
5479 | return resultobj; |
5480 | fail: |
5481 | return NULL__null; |
5482 | } |
5483 | |
5484 | |
5485 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_errors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5486 | PyObject *resultobj = 0; |
5487 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5488 | void *argp1 = 0 ; |
5489 | int res1 = 0 ; |
5490 | PyObject * obj0 = 0 ; |
5491 | int result; |
5492 | |
5493 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuites_errors",&obj0)) SWIG_failgoto fail; |
5494 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5495 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_errors" "', argument " "1"" of type '" "GTestSuites const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_errors" "', argument " "1"" of type '" "GTestSuites const *""'"); goto fail; } while (0); |
5497 | } |
5498 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5499 | { |
5500 | try { |
5501 | result = (int)((GTestSuites const *)arg1)->errors(); |
5502 | } |
5503 | catch (const GException::out_of_range& e) { |
5504 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5505 | } |
5506 | catch (const GExceptionHandler& e) { |
5507 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5508 | } |
5509 | catch (const std::exception& e) { |
5510 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5511 | } |
5512 | } |
5513 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5514 | return resultobj; |
5515 | fail: |
5516 | return NULL__null; |
5517 | } |
5518 | |
5519 | |
5520 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_failures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5521 | PyObject *resultobj = 0; |
5522 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5523 | void *argp1 = 0 ; |
5524 | int res1 = 0 ; |
5525 | PyObject * obj0 = 0 ; |
5526 | int result; |
5527 | |
5528 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuites_failures",&obj0)) SWIG_failgoto fail; |
5529 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5530 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_failures" "', argument " "1"" of type '" "GTestSuites const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_failures" "', argument " "1"" of type '" "GTestSuites const *""'"); goto fail; } while (0); |
5532 | } |
5533 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5534 | { |
5535 | try { |
5536 | result = (int)((GTestSuites const *)arg1)->failures(); |
5537 | } |
5538 | catch (const GException::out_of_range& e) { |
5539 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5540 | } |
5541 | catch (const GExceptionHandler& e) { |
5542 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5543 | } |
5544 | catch (const std::exception& e) { |
5545 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5546 | } |
5547 | } |
5548 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5549 | return resultobj; |
5550 | fail: |
5551 | return NULL__null; |
5552 | } |
5553 | |
5554 | |
5555 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_tests(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5556 | PyObject *resultobj = 0; |
5557 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5558 | void *argp1 = 0 ; |
5559 | int res1 = 0 ; |
5560 | PyObject * obj0 = 0 ; |
5561 | int result; |
5562 | |
5563 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuites_tests",&obj0)) SWIG_failgoto fail; |
5564 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5565 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_tests" "', argument " "1"" of type '" "GTestSuites const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_tests" "', argument " "1"" of type '" "GTestSuites const *""'"); goto fail; } while (0); |
5567 | } |
5568 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5569 | { |
5570 | try { |
5571 | result = (int)((GTestSuites const *)arg1)->tests(); |
5572 | } |
5573 | catch (const GException::out_of_range& e) { |
5574 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5575 | } |
5576 | catch (const GExceptionHandler& e) { |
5577 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5578 | } |
5579 | catch (const std::exception& e) { |
5580 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5581 | } |
5582 | } |
5583 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5584 | return resultobj; |
5585 | fail: |
5586 | return NULL__null; |
5587 | } |
5588 | |
5589 | |
5590 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_timestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5591 | PyObject *resultobj = 0; |
5592 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5593 | void *argp1 = 0 ; |
5594 | int res1 = 0 ; |
5595 | PyObject * obj0 = 0 ; |
5596 | time_t *result = 0 ; |
5597 | |
5598 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuites_timestamp",&obj0)) SWIG_failgoto fail; |
5599 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5600 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_timestamp" "', argument " "1"" of type '" "GTestSuites const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_timestamp" "', argument " "1"" of type '" "GTestSuites const *""'"); goto fail; } while (0); |
5602 | } |
5603 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5604 | { |
5605 | try { |
5606 | result = (time_t *) &((GTestSuites const *)arg1)->timestamp(); |
5607 | } |
5608 | catch (const GException::out_of_range& e) { |
5609 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5610 | } |
5611 | catch (const GExceptionHandler& e) { |
5612 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5613 | } |
5614 | catch (const std::exception& e) { |
5615 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5616 | } |
5617 | } |
5618 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_time_t, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], 0 | 0); |
5619 | return resultobj; |
5620 | fail: |
5621 | return NULL__null; |
5622 | } |
5623 | |
5624 | |
5625 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_run(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5626 | PyObject *resultobj = 0; |
5627 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5628 | void *argp1 = 0 ; |
5629 | int res1 = 0 ; |
5630 | PyObject * obj0 = 0 ; |
5631 | bool result; |
5632 | |
5633 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuites_run",&obj0)) SWIG_failgoto fail; |
5634 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5635 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_run" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_run" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
5637 | } |
5638 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5639 | { |
5640 | try { |
5641 | result = (bool)(arg1)->run(); |
5642 | } |
5643 | catch (const GException::out_of_range& e) { |
5644 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5645 | } |
5646 | catch (const GExceptionHandler& e) { |
5647 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5648 | } |
5649 | catch (const std::exception& e) { |
5650 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5651 | } |
5652 | } |
5653 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5654 | return resultobj; |
5655 | fail: |
5656 | return NULL__null; |
5657 | } |
5658 | |
5659 | |
5660 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5661 | PyObject *resultobj = 0; |
5662 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5663 | std::string *arg2 = 0 ; |
5664 | void *argp1 = 0 ; |
5665 | int res1 = 0 ; |
5666 | int res2 = SWIG_OLDOBJ((0)) ; |
5667 | PyObject * obj0 = 0 ; |
5668 | PyObject * obj1 = 0 ; |
5669 | |
5670 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuites_save",&obj0,&obj1)) SWIG_failgoto fail; |
5671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5672 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_save" "', argument " "1"" of type '" "GTestSuites const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_save" "', argument " "1"" of type '" "GTestSuites const *""'"); goto fail; } while (0); |
5674 | } |
5675 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5676 | { |
5677 | std::string *ptr = (std::string *)0; |
5678 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
5679 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5680 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestSuites_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestSuites_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
5681 | } |
5682 | if (!ptr) { |
5683 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuites_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuites_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
5684 | } |
5685 | arg2 = ptr; |
5686 | } |
5687 | { |
5688 | try { |
5689 | ((GTestSuites const *)arg1)->save((std::string const &)*arg2); |
5690 | } |
5691 | catch (const GException::out_of_range& e) { |
5692 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5693 | } |
5694 | catch (const GExceptionHandler& e) { |
5695 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5696 | } |
5697 | catch (const std::exception& e) { |
5698 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5699 | } |
5700 | } |
5701 | resultobj = SWIG_Py_Void(); |
5702 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5703 | return resultobj; |
5704 | fail: |
5705 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5706 | return NULL__null; |
5707 | } |
5708 | |
5709 | |
5710 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5711 | PyObject *resultobj = 0; |
5712 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5713 | int *arg2 = 0 ; |
5714 | void *argp1 = 0 ; |
5715 | int res1 = 0 ; |
5716 | int temp2 ; |
5717 | int val2 ; |
5718 | int ecode2 = 0 ; |
5719 | PyObject * obj0 = 0 ; |
5720 | PyObject * obj1 = 0 ; |
5721 | GTestSuite *result = 0 ; |
5722 | |
5723 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuites___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
5724 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5725 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites___getitem__" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites___getitem__" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
5727 | } |
5728 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5729 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5730 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5731 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuites___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuites___getitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
5732 | } |
5733 | temp2 = static_cast< int >(val2); |
5734 | arg2 = &temp2; |
5735 | { |
5736 | try { |
5737 | result = (GTestSuite *)GTestSuites___getitem__(arg1,(int const &)*arg2); |
5738 | } |
5739 | catch (const GException::out_of_range& e) { |
5740 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5741 | } |
5742 | catch (const GExceptionHandler& e) { |
5743 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5744 | } |
5745 | catch (const std::exception& e) { |
5746 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5747 | } |
5748 | } |
5749 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
5750 | return resultobj; |
5751 | fail: |
5752 | return NULL__null; |
5753 | } |
5754 | |
5755 | |
5756 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5757 | PyObject *resultobj = 0; |
5758 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5759 | int *arg2 = 0 ; |
5760 | GTestSuite *arg3 = 0 ; |
5761 | void *argp1 = 0 ; |
5762 | int res1 = 0 ; |
5763 | int temp2 ; |
5764 | int val2 ; |
5765 | int ecode2 = 0 ; |
5766 | void *argp3 = 0 ; |
5767 | int res3 = 0 ; |
5768 | PyObject * obj0 = 0 ; |
5769 | PyObject * obj1 = 0 ; |
5770 | PyObject * obj2 = 0 ; |
5771 | |
5772 | if (!PyArg_ParseTuple(args,(char *)"OOO:GTestSuites___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5773 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5774 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites___setitem__" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites___setitem__" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
5776 | } |
5777 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5778 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5779 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5780 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuites___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuites___setitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
5781 | } |
5782 | temp2 = static_cast< int >(val2); |
5783 | arg2 = &temp2; |
5784 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTestSuite, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6], 0 | 0, 0); |
5785 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
5786 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTestSuites___setitem__" "', argument " "3"" of type '" "GTestSuite const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GTestSuites___setitem__" "', argument " "3"" of type '" "GTestSuite const &""'"); goto fail; } while (0); |
5787 | } |
5788 | if (!argp3) { |
5789 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuites___setitem__" "', argument " "3"" of type '" "GTestSuite const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuites___setitem__" "', argument " "3"" of type '" "GTestSuite const &""'"); goto fail; } while(0); |
5790 | } |
5791 | arg3 = reinterpret_cast< GTestSuite * >(argp3); |
5792 | { |
5793 | try { |
5794 | GTestSuites___setitem__(arg1,(int const &)*arg2,(GTestSuite const &)*arg3); |
5795 | } |
5796 | catch (const GException::out_of_range& e) { |
5797 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5798 | } |
5799 | catch (const GExceptionHandler& e) { |
5800 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5801 | } |
5802 | catch (const std::exception& e) { |
5803 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5804 | } |
5805 | } |
5806 | resultobj = SWIG_Py_Void(); |
5807 | return resultobj; |
5808 | fail: |
5809 | return NULL__null; |
5810 | } |
5811 | |
5812 | |
5813 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuites_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5814 | PyObject *resultobj = 0; |
5815 | GTestSuites *arg1 = (GTestSuites *) 0 ; |
5816 | void *argp1 = 0 ; |
5817 | int res1 = 0 ; |
5818 | PyObject * obj0 = 0 ; |
5819 | GTestSuites result; |
5820 | |
5821 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuites_copy",&obj0)) SWIG_failgoto fail; |
5822 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuites, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
5823 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuites_copy" "', argument " "1"" of type '" "GTestSuites *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuites_copy" "', argument " "1"" of type '" "GTestSuites *""'"); goto fail; } while(0); |
5825 | } |
5826 | arg1 = reinterpret_cast< GTestSuites * >(argp1); |
5827 | { |
5828 | try { |
5829 | result = GTestSuites_copy(arg1); |
5830 | } |
5831 | catch (const GException::out_of_range& e) { |
5832 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5833 | } |
5834 | catch (const GExceptionHandler& e) { |
5835 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5836 | } |
5837 | catch (const std::exception& e) { |
5838 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5839 | } |
5840 | } |
5841 | resultobj = SWIG_NewPointerObj((new GTestSuites(static_cast< const GTestSuites& >(result))), SWIGTYPE_p_GTestSuites, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTestSuites(static_cast < const GTestSuites& >(result))), swig_types[7], 0x1 | 0); |
5842 | return resultobj; |
5843 | fail: |
5844 | return NULL__null; |
5845 | } |
5846 | |
5847 | |
5848 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GTestSuites_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5849 | PyObject *obj; |
5850 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
5851 | SWIG_TypeNewClientData(SWIGTYPE_p_GTestSuitesswig_types[7], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
5852 | return SWIG_Py_Void(); |
5853 | } |
5854 | |
5855 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GTestSuite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5856 | PyObject *resultobj = 0; |
5857 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
5858 | void *argp1 = 0 ; |
5859 | int res1 = 0 ; |
5860 | PyObject * obj0 = 0 ; |
5861 | |
5862 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GTestSuite",&obj0)) SWIG_failgoto fail; |
5863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0x1 | 0, 0); |
5864 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GTestSuite" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GTestSuite" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
5866 | } |
5867 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
5868 | { |
5869 | try { |
5870 | delete arg1; |
5871 | } |
5872 | catch (const GException::out_of_range& e) { |
5873 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5874 | } |
5875 | catch (const GExceptionHandler& e) { |
5876 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5877 | } |
5878 | catch (const std::exception& e) { |
5879 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5880 | } |
5881 | } |
5882 | resultobj = SWIG_Py_Void(); |
5883 | return resultobj; |
5884 | fail: |
5885 | return NULL__null; |
5886 | } |
5887 | |
5888 | |
5889 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5890 | PyObject *resultobj = 0; |
5891 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
5892 | void *argp1 = 0 ; |
5893 | int res1 = 0 ; |
5894 | PyObject * obj0 = 0 ; |
5895 | GTestSuite *result = 0 ; |
5896 | |
5897 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_clone",&obj0)) SWIG_failgoto fail; |
5898 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5899 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_clone" "', argument " "1"" of type '" "GTestSuite const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_clone" "', argument " "1"" of type '" "GTestSuite const *""'"); goto fail; } while (0); |
5901 | } |
5902 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
5903 | { |
5904 | try { |
5905 | result = (GTestSuite *)((GTestSuite const *)arg1)->clone(); |
5906 | } |
5907 | catch (const GException::out_of_range& e) { |
5908 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5909 | } |
5910 | catch (const GExceptionHandler& e) { |
5911 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5912 | } |
5913 | catch (const std::exception& e) { |
5914 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5915 | } |
5916 | } |
5917 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
5918 | return resultobj; |
5919 | fail: |
5920 | return NULL__null; |
5921 | } |
5922 | |
5923 | |
5924 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5925 | PyObject *resultobj = 0; |
5926 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
5927 | void *argp1 = 0 ; |
5928 | int res1 = 0 ; |
5929 | PyObject * obj0 = 0 ; |
5930 | |
5931 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_set",&obj0)) SWIG_failgoto fail; |
5932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5933 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_set" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_set" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
5935 | } |
5936 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
5937 | { |
5938 | try { |
5939 | (arg1)->set(); |
5940 | } |
5941 | catch (const GException::out_of_range& e) { |
5942 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5943 | } |
5944 | catch (const GExceptionHandler& e) { |
5945 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5946 | } |
5947 | catch (const std::exception& e) { |
5948 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5949 | } |
5950 | } |
5951 | resultobj = SWIG_Py_Void(); |
5952 | return resultobj; |
5953 | fail: |
5954 | return NULL__null; |
5955 | } |
5956 | |
5957 | |
5958 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5959 | PyObject *resultobj = 0; |
5960 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
5961 | void *argp1 = 0 ; |
5962 | int res1 = 0 ; |
5963 | PyObject * obj0 = 0 ; |
5964 | |
5965 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_clear",&obj0)) SWIG_failgoto fail; |
5966 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5967 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5968 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_clear" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_clear" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
5969 | } |
5970 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
5971 | { |
5972 | try { |
5973 | (arg1)->clear(); |
5974 | } |
5975 | catch (const GException::out_of_range& e) { |
5976 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5977 | } |
5978 | catch (const GExceptionHandler& e) { |
5979 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5980 | } |
5981 | catch (const std::exception& e) { |
5982 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5983 | } |
5984 | } |
5985 | resultobj = SWIG_Py_Void(); |
5986 | return resultobj; |
5987 | fail: |
5988 | return NULL__null; |
5989 | } |
5990 | |
5991 | |
5992 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5993 | PyObject *resultobj = 0; |
5994 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
5995 | void *argp1 = 0 ; |
5996 | int res1 = 0 ; |
5997 | PyObject * obj0 = 0 ; |
5998 | int result; |
5999 | |
6000 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_size",&obj0)) SWIG_failgoto fail; |
6001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6002 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_size" "', argument " "1"" of type '" "GTestSuite const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_size" "', argument " "1"" of type '" "GTestSuite const *""'"); goto fail; } while (0); |
6004 | } |
6005 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6006 | { |
6007 | try { |
6008 | result = (int)((GTestSuite const *)arg1)->size(); |
6009 | } |
6010 | catch (const GException::out_of_range& e) { |
6011 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6012 | } |
6013 | catch (const GExceptionHandler& e) { |
6014 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6015 | } |
6016 | catch (const std::exception& e) { |
6017 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6018 | } |
6019 | } |
6020 | resultobj = SWIG_From_int(static_cast< int >(result)); |
6021 | return resultobj; |
6022 | fail: |
6023 | return NULL__null; |
6024 | } |
6025 | |
6026 | |
6027 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_run(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6028 | PyObject *resultobj = 0; |
6029 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6030 | void *argp1 = 0 ; |
6031 | int res1 = 0 ; |
6032 | PyObject * obj0 = 0 ; |
6033 | bool result; |
6034 | |
6035 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_run",&obj0)) SWIG_failgoto fail; |
6036 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6037 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_run" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_run" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
6039 | } |
6040 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6041 | { |
6042 | try { |
6043 | result = (bool)(arg1)->run(); |
6044 | } |
6045 | catch (const GException::out_of_range& e) { |
6046 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6047 | } |
6048 | catch (const GExceptionHandler& e) { |
6049 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6050 | } |
6051 | catch (const std::exception& e) { |
6052 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6053 | } |
6054 | } |
6055 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
6056 | return resultobj; |
6057 | fail: |
6058 | return NULL__null; |
6059 | } |
6060 | |
6061 | |
6062 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_name__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6063 | PyObject *resultobj = 0; |
6064 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6065 | void *argp1 = 0 ; |
6066 | int res1 = 0 ; |
6067 | PyObject * obj0 = 0 ; |
6068 | std::string *result = 0 ; |
6069 | |
6070 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_name",&obj0)) SWIG_failgoto fail; |
6071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6072 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_name" "', argument " "1"" of type '" "GTestSuite const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_name" "', argument " "1"" of type '" "GTestSuite const *""'"); goto fail; } while (0); |
6074 | } |
6075 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6076 | { |
6077 | try { |
6078 | result = (std::string *) &((GTestSuite const *)arg1)->name(); |
6079 | } |
6080 | catch (const GException::out_of_range& e) { |
6081 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6082 | } |
6083 | catch (const GExceptionHandler& e) { |
6084 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6085 | } |
6086 | catch (const std::exception& e) { |
6087 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6088 | } |
6089 | } |
6090 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
6091 | return resultobj; |
6092 | fail: |
6093 | return NULL__null; |
6094 | } |
6095 | |
6096 | |
6097 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_name__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6098 | PyObject *resultobj = 0; |
6099 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6100 | std::string *arg2 = 0 ; |
6101 | void *argp1 = 0 ; |
6102 | int res1 = 0 ; |
6103 | int res2 = SWIG_OLDOBJ((0)) ; |
6104 | PyObject * obj0 = 0 ; |
6105 | PyObject * obj1 = 0 ; |
6106 | |
6107 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuite_name",&obj0,&obj1)) SWIG_failgoto fail; |
6108 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6109 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_name" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_name" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
6111 | } |
6112 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6113 | { |
6114 | std::string *ptr = (std::string *)0; |
6115 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
6116 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
6117 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestSuite_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestSuite_name" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
6118 | } |
6119 | if (!ptr) { |
6120 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_name" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
6121 | } |
6122 | arg2 = ptr; |
6123 | } |
6124 | { |
6125 | try { |
6126 | (arg1)->name((std::string const &)*arg2); |
6127 | } |
6128 | catch (const GException::out_of_range& e) { |
6129 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6130 | } |
6131 | catch (const GExceptionHandler& e) { |
6132 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6133 | } |
6134 | catch (const std::exception& e) { |
6135 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6136 | } |
6137 | } |
6138 | resultobj = SWIG_Py_Void(); |
6139 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
6140 | return resultobj; |
6141 | fail: |
6142 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
6143 | return NULL__null; |
6144 | } |
6145 | |
6146 | |
6147 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_name(PyObject *self, PyObject *args) { |
6148 | int argc; |
6149 | PyObject *argv[3]; |
6150 | int ii; |
6151 | |
6152 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6153 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6154 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6155 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6156 | } |
6157 | if (argc == 1) { |
6158 | int _v; |
6159 | void *vptr = 0; |
6160 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6161 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6162 | if (_v) { |
6163 | return _wrap_GTestSuite_name__SWIG_0(self, args); |
6164 | } |
6165 | } |
6166 | if (argc == 2) { |
6167 | int _v; |
6168 | void *vptr = 0; |
6169 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6170 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6171 | if (_v) { |
6172 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
6173 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6174 | if (_v) { |
6175 | return _wrap_GTestSuite_name__SWIG_1(self, args); |
6176 | } |
6177 | } |
6178 | } |
6179 | |
6180 | fail: |
6181 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTestSuite_name'.\n" |
6182 | " Possible C/C++ prototypes are:\n" |
6183 | " GTestSuite::name() const\n" |
6184 | " GTestSuite::name(std::string const &)\n"); |
6185 | return 0; |
6186 | } |
6187 | |
6188 | |
6189 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_cout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6190 | PyObject *resultobj = 0; |
6191 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6192 | bool *arg2 = 0 ; |
6193 | void *argp1 = 0 ; |
6194 | int res1 = 0 ; |
6195 | bool temp2 ; |
6196 | bool val2 ; |
6197 | int ecode2 = 0 ; |
6198 | PyObject * obj0 = 0 ; |
6199 | PyObject * obj1 = 0 ; |
6200 | |
6201 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuite_cout",&obj0,&obj1)) SWIG_failgoto fail; |
6202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6203 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_cout" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_cout" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
6205 | } |
6206 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6207 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
6208 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6209 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuite_cout" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuite_cout" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0); |
6210 | } |
6211 | temp2 = static_cast< bool >(val2); |
6212 | arg2 = &temp2; |
6213 | { |
6214 | try { |
6215 | (arg1)->cout((bool const &)*arg2); |
6216 | } |
6217 | catch (const GException::out_of_range& e) { |
6218 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6219 | } |
6220 | catch (const GExceptionHandler& e) { |
6221 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6222 | } |
6223 | catch (const std::exception& e) { |
6224 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6225 | } |
6226 | } |
6227 | resultobj = SWIG_Py_Void(); |
6228 | return resultobj; |
6229 | fail: |
6230 | return NULL__null; |
6231 | } |
6232 | |
6233 | |
6234 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_assert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6235 | PyObject *resultobj = 0; |
6236 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6237 | bool *arg2 = 0 ; |
6238 | std::string *arg3 = 0 ; |
6239 | std::string *arg4 = 0 ; |
6240 | void *argp1 = 0 ; |
6241 | int res1 = 0 ; |
6242 | bool temp2 ; |
6243 | bool val2 ; |
6244 | int ecode2 = 0 ; |
6245 | int res3 = SWIG_OLDOBJ((0)) ; |
6246 | int res4 = SWIG_OLDOBJ((0)) ; |
6247 | PyObject * obj0 = 0 ; |
6248 | PyObject * obj1 = 0 ; |
6249 | PyObject * obj2 = 0 ; |
6250 | PyObject * obj3 = 0 ; |
6251 | |
6252 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GTestSuite_test_assert",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
6253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6254 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_assert" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_assert" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
6256 | } |
6257 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6258 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
6259 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6260 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuite_test_assert" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuite_test_assert" "', argument " "2"" of type '" "bool""'"); goto fail; } while (0); |
6261 | } |
6262 | temp2 = static_cast< bool >(val2); |
6263 | arg2 = &temp2; |
6264 | { |
6265 | std::string *ptr = (std::string *)0; |
6266 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
6267 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
6268 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTestSuite_test_assert" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GTestSuite_test_assert" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
6269 | } |
6270 | if (!ptr) { |
6271 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_assert" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_assert" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0); |
6272 | } |
6273 | arg3 = ptr; |
6274 | } |
6275 | { |
6276 | std::string *ptr = (std::string *)0; |
6277 | res4 = SWIG_AsPtr_std_string(obj3, &ptr); |
6278 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
6279 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GTestSuite_test_assert" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GTestSuite_test_assert" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while (0); |
6280 | } |
6281 | if (!ptr) { |
6282 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_assert" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_assert" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0); |
6283 | } |
6284 | arg4 = ptr; |
6285 | } |
6286 | { |
6287 | try { |
6288 | (arg1)->test_assert((bool const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4); |
6289 | } |
6290 | catch (const GException::out_of_range& e) { |
6291 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6292 | } |
6293 | catch (const GExceptionHandler& e) { |
6294 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6295 | } |
6296 | catch (const std::exception& e) { |
6297 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6298 | } |
6299 | } |
6300 | resultobj = SWIG_Py_Void(); |
6301 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
6302 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
6303 | return resultobj; |
6304 | fail: |
6305 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
6306 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
6307 | return NULL__null; |
6308 | } |
6309 | |
6310 | |
6311 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_assert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6312 | PyObject *resultobj = 0; |
6313 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6314 | bool *arg2 = 0 ; |
6315 | std::string *arg3 = 0 ; |
6316 | void *argp1 = 0 ; |
6317 | int res1 = 0 ; |
6318 | bool temp2 ; |
6319 | bool val2 ; |
6320 | int ecode2 = 0 ; |
6321 | int res3 = SWIG_OLDOBJ((0)) ; |
6322 | PyObject * obj0 = 0 ; |
6323 | PyObject * obj1 = 0 ; |
6324 | PyObject * obj2 = 0 ; |
6325 | |
6326 | if (!PyArg_ParseTuple(args,(char *)"OOO:GTestSuite_test_assert",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
6327 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6328 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_assert" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_assert" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
6330 | } |
6331 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6332 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
6333 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6334 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuite_test_assert" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuite_test_assert" "', argument " "2"" of type '" "bool""'"); goto fail; } while (0); |
6335 | } |
6336 | temp2 = static_cast< bool >(val2); |
6337 | arg2 = &temp2; |
6338 | { |
6339 | std::string *ptr = (std::string *)0; |
6340 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
6341 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
6342 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTestSuite_test_assert" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GTestSuite_test_assert" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
6343 | } |
6344 | if (!ptr) { |
6345 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_assert" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_assert" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0); |
6346 | } |
6347 | arg3 = ptr; |
6348 | } |
6349 | { |
6350 | try { |
6351 | (arg1)->test_assert((bool const &)*arg2,(std::string const &)*arg3); |
6352 | } |
6353 | catch (const GException::out_of_range& e) { |
6354 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6355 | } |
6356 | catch (const GExceptionHandler& e) { |
6357 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6358 | } |
6359 | catch (const std::exception& e) { |
6360 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6361 | } |
6362 | } |
6363 | resultobj = SWIG_Py_Void(); |
6364 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
6365 | return resultobj; |
6366 | fail: |
6367 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
6368 | return NULL__null; |
6369 | } |
6370 | |
6371 | |
6372 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_assert(PyObject *self, PyObject *args) { |
6373 | int argc; |
6374 | PyObject *argv[5]; |
6375 | int ii; |
6376 | |
6377 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6378 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6379 | for (ii = 0; (ii < 4) && (ii < argc); ii++) { |
6380 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6381 | } |
6382 | if (argc == 3) { |
6383 | int _v; |
6384 | void *vptr = 0; |
6385 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6386 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6387 | if (_v) { |
6388 | { |
6389 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
6390 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6391 | } |
6392 | if (_v) { |
6393 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
6394 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6395 | if (_v) { |
6396 | return _wrap_GTestSuite_test_assert__SWIG_1(self, args); |
6397 | } |
6398 | } |
6399 | } |
6400 | } |
6401 | if (argc == 4) { |
6402 | int _v; |
6403 | void *vptr = 0; |
6404 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6405 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6406 | if (_v) { |
6407 | { |
6408 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
6409 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6410 | } |
6411 | if (_v) { |
6412 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
6413 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6414 | if (_v) { |
6415 | int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); |
6416 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6417 | if (_v) { |
6418 | return _wrap_GTestSuite_test_assert__SWIG_0(self, args); |
6419 | } |
6420 | } |
6421 | } |
6422 | } |
6423 | } |
6424 | |
6425 | fail: |
6426 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTestSuite_test_assert'.\n" |
6427 | " Possible C/C++ prototypes are:\n" |
6428 | " GTestSuite::test_assert(bool const &,std::string const &,std::string const &)\n" |
6429 | " GTestSuite::test_assert(bool const &,std::string const &)\n"); |
6430 | return 0; |
6431 | } |
6432 | |
6433 | |
6434 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6435 | PyObject *resultobj = 0; |
6436 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6437 | int *arg2 = 0 ; |
6438 | int *arg3 = 0 ; |
6439 | std::string *arg4 = 0 ; |
6440 | std::string *arg5 = 0 ; |
6441 | void *argp1 = 0 ; |
6442 | int res1 = 0 ; |
6443 | int temp2 ; |
6444 | int val2 ; |
6445 | int ecode2 = 0 ; |
6446 | int temp3 ; |
6447 | int val3 ; |
6448 | int ecode3 = 0 ; |
6449 | int res4 = SWIG_OLDOBJ((0)) ; |
6450 | int res5 = SWIG_OLDOBJ((0)) ; |
6451 | PyObject * obj0 = 0 ; |
6452 | PyObject * obj1 = 0 ; |
6453 | PyObject * obj2 = 0 ; |
6454 | PyObject * obj3 = 0 ; |
6455 | PyObject * obj4 = 0 ; |
6456 | |
6457 | if (!PyArg_ParseTuple(args,(char *)"OOOOO:GTestSuite_test_value",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail; |
6458 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6459 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
6461 | } |
6462 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6463 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
6464 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6465 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
6466 | } |
6467 | temp2 = static_cast< int >(val2); |
6468 | arg2 = &temp2; |
6469 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
6470 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6471 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "int""'"); goto fail; } while (0); |
6472 | } |
6473 | temp3 = static_cast< int >(val3); |
6474 | arg3 = &temp3; |
6475 | { |
6476 | std::string *ptr = (std::string *)0; |
6477 | res4 = SWIG_AsPtr_std_string(obj3, &ptr); |
6478 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
6479 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while (0); |
6480 | } |
6481 | if (!ptr) { |
6482 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0); |
6483 | } |
6484 | arg4 = ptr; |
6485 | } |
6486 | { |
6487 | std::string *ptr = (std::string *)0; |
6488 | res5 = SWIG_AsPtr_std_string(obj4, &ptr); |
6489 | if (!SWIG_IsOK(res5)(res5 >= 0)) { |
6490 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GTestSuite_test_value" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != ( -1)) ? res5 : -5)), "in method '" "GTestSuite_test_value" "', argument " "5"" of type '" "std::string const &""'"); goto fail; } while (0); |
6491 | } |
6492 | if (!ptr) { |
6493 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_value" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_value" "', argument " "5"" of type '" "std::string const &""'"); goto fail; } while(0); |
6494 | } |
6495 | arg5 = ptr; |
6496 | } |
6497 | { |
6498 | try { |
6499 | (arg1)->test_value((int const &)*arg2,(int const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5); |
6500 | } |
6501 | catch (const GException::out_of_range& e) { |
6502 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6503 | } |
6504 | catch (const GExceptionHandler& e) { |
6505 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6506 | } |
6507 | catch (const std::exception& e) { |
6508 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6509 | } |
6510 | } |
6511 | resultobj = SWIG_Py_Void(); |
6512 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
6513 | if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) << 1)))) delete arg5; |
6514 | return resultobj; |
6515 | fail: |
6516 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
6517 | if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) << 1)))) delete arg5; |
6518 | return NULL__null; |
6519 | } |
6520 | |
6521 | |
6522 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6523 | PyObject *resultobj = 0; |
6524 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6525 | int *arg2 = 0 ; |
6526 | int *arg3 = 0 ; |
6527 | std::string *arg4 = 0 ; |
6528 | void *argp1 = 0 ; |
6529 | int res1 = 0 ; |
6530 | int temp2 ; |
6531 | int val2 ; |
6532 | int ecode2 = 0 ; |
6533 | int temp3 ; |
6534 | int val3 ; |
6535 | int ecode3 = 0 ; |
6536 | int res4 = SWIG_OLDOBJ((0)) ; |
6537 | PyObject * obj0 = 0 ; |
6538 | PyObject * obj1 = 0 ; |
6539 | PyObject * obj2 = 0 ; |
6540 | PyObject * obj3 = 0 ; |
6541 | |
6542 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GTestSuite_test_value",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
6543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6544 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
6546 | } |
6547 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6548 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
6549 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6550 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
6551 | } |
6552 | temp2 = static_cast< int >(val2); |
6553 | arg2 = &temp2; |
6554 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
6555 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6556 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "int""'"); goto fail; } while (0); |
6557 | } |
6558 | temp3 = static_cast< int >(val3); |
6559 | arg3 = &temp3; |
6560 | { |
6561 | std::string *ptr = (std::string *)0; |
6562 | res4 = SWIG_AsPtr_std_string(obj3, &ptr); |
6563 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
6564 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while (0); |
6565 | } |
6566 | if (!ptr) { |
6567 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0); |
6568 | } |
6569 | arg4 = ptr; |
6570 | } |
6571 | { |
6572 | try { |
6573 | (arg1)->test_value((int const &)*arg2,(int const &)*arg3,(std::string const &)*arg4); |
6574 | } |
6575 | catch (const GException::out_of_range& e) { |
6576 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6577 | } |
6578 | catch (const GExceptionHandler& e) { |
6579 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6580 | } |
6581 | catch (const std::exception& e) { |
6582 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6583 | } |
6584 | } |
6585 | resultobj = SWIG_Py_Void(); |
6586 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
6587 | return resultobj; |
6588 | fail: |
6589 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
6590 | return NULL__null; |
6591 | } |
6592 | |
6593 | |
6594 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_value__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6595 | PyObject *resultobj = 0; |
6596 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6597 | int *arg2 = 0 ; |
6598 | int *arg3 = 0 ; |
6599 | void *argp1 = 0 ; |
6600 | int res1 = 0 ; |
6601 | int temp2 ; |
6602 | int val2 ; |
6603 | int ecode2 = 0 ; |
6604 | int temp3 ; |
6605 | int val3 ; |
6606 | int ecode3 = 0 ; |
6607 | PyObject * obj0 = 0 ; |
6608 | PyObject * obj1 = 0 ; |
6609 | PyObject * obj2 = 0 ; |
6610 | |
6611 | if (!PyArg_ParseTuple(args,(char *)"OOO:GTestSuite_test_value",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
6612 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6613 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6614 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
6615 | } |
6616 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6617 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
6618 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6619 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
6620 | } |
6621 | temp2 = static_cast< int >(val2); |
6622 | arg2 = &temp2; |
6623 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
6624 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6625 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "int""'"); goto fail; } while (0); |
6626 | } |
6627 | temp3 = static_cast< int >(val3); |
6628 | arg3 = &temp3; |
6629 | { |
6630 | try { |
6631 | (arg1)->test_value((int const &)*arg2,(int const &)*arg3); |
6632 | } |
6633 | catch (const GException::out_of_range& e) { |
6634 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6635 | } |
6636 | catch (const GExceptionHandler& e) { |
6637 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6638 | } |
6639 | catch (const std::exception& e) { |
6640 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6641 | } |
6642 | } |
6643 | resultobj = SWIG_Py_Void(); |
6644 | return resultobj; |
6645 | fail: |
6646 | return NULL__null; |
6647 | } |
6648 | |
6649 | |
6650 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_value__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6651 | PyObject *resultobj = 0; |
6652 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6653 | double *arg2 = 0 ; |
6654 | double *arg3 = 0 ; |
6655 | double *arg4 = 0 ; |
6656 | std::string *arg5 = 0 ; |
6657 | std::string *arg6 = 0 ; |
6658 | void *argp1 = 0 ; |
6659 | int res1 = 0 ; |
6660 | double temp2 ; |
6661 | double val2 ; |
6662 | int ecode2 = 0 ; |
6663 | double temp3 ; |
6664 | double val3 ; |
6665 | int ecode3 = 0 ; |
6666 | double temp4 ; |
6667 | double val4 ; |
6668 | int ecode4 = 0 ; |
6669 | int res5 = SWIG_OLDOBJ((0)) ; |
6670 | int res6 = SWIG_OLDOBJ((0)) ; |
6671 | PyObject * obj0 = 0 ; |
6672 | PyObject * obj1 = 0 ; |
6673 | PyObject * obj2 = 0 ; |
6674 | PyObject * obj3 = 0 ; |
6675 | PyObject * obj4 = 0 ; |
6676 | PyObject * obj5 = 0 ; |
6677 | |
6678 | if (!PyArg_ParseTuple(args,(char *)"OOOOOO:GTestSuite_test_value",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_failgoto fail; |
6679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6680 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
6682 | } |
6683 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6684 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6685 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6686 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
6687 | } |
6688 | temp2 = static_cast< double >(val2); |
6689 | arg2 = &temp2; |
6690 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
6691 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6692 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "double""'"); goto fail; } while (0); |
6693 | } |
6694 | temp3 = static_cast< double >(val3); |
6695 | arg3 = &temp3; |
6696 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
6697 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
6698 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "double""'"); goto fail; } while (0); |
6699 | } |
6700 | temp4 = static_cast< double >(val4); |
6701 | arg4 = &temp4; |
6702 | { |
6703 | std::string *ptr = (std::string *)0; |
6704 | res5 = SWIG_AsPtr_std_string(obj4, &ptr); |
6705 | if (!SWIG_IsOK(res5)(res5 >= 0)) { |
6706 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GTestSuite_test_value" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != ( -1)) ? res5 : -5)), "in method '" "GTestSuite_test_value" "', argument " "5"" of type '" "std::string const &""'"); goto fail; } while (0); |
6707 | } |
6708 | if (!ptr) { |
6709 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_value" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_value" "', argument " "5"" of type '" "std::string const &""'"); goto fail; } while(0); |
6710 | } |
6711 | arg5 = ptr; |
6712 | } |
6713 | { |
6714 | std::string *ptr = (std::string *)0; |
6715 | res6 = SWIG_AsPtr_std_string(obj5, &ptr); |
6716 | if (!SWIG_IsOK(res6)(res6 >= 0)) { |
6717 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GTestSuite_test_value" "', argument " "6"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res6 != ( -1)) ? res6 : -5)), "in method '" "GTestSuite_test_value" "', argument " "6"" of type '" "std::string const &""'"); goto fail; } while (0); |
6718 | } |
6719 | if (!ptr) { |
6720 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_value" "', argument " "6"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_value" "', argument " "6"" of type '" "std::string const &""'"); goto fail; } while(0); |
6721 | } |
6722 | arg6 = ptr; |
6723 | } |
6724 | { |
6725 | try { |
6726 | (arg1)->test_value((double const &)*arg2,(double const &)*arg3,(double const &)*arg4,(std::string const &)*arg5,(std::string const &)*arg6); |
6727 | } |
6728 | catch (const GException::out_of_range& e) { |
6729 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6730 | } |
6731 | catch (const GExceptionHandler& e) { |
6732 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6733 | } |
6734 | catch (const std::exception& e) { |
6735 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6736 | } |
6737 | } |
6738 | resultobj = SWIG_Py_Void(); |
6739 | if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) << 1)))) delete arg5; |
6740 | if (SWIG_IsNewObj(res6)((res6 >= 0) && (res6 & ((1 << 8) << 1)))) delete arg6; |
6741 | return resultobj; |
6742 | fail: |
6743 | if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) << 1)))) delete arg5; |
6744 | if (SWIG_IsNewObj(res6)((res6 >= 0) && (res6 & ((1 << 8) << 1)))) delete arg6; |
6745 | return NULL__null; |
6746 | } |
6747 | |
6748 | |
6749 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_value__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6750 | PyObject *resultobj = 0; |
6751 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6752 | double *arg2 = 0 ; |
6753 | double *arg3 = 0 ; |
6754 | double *arg4 = 0 ; |
6755 | std::string *arg5 = 0 ; |
6756 | void *argp1 = 0 ; |
6757 | int res1 = 0 ; |
6758 | double temp2 ; |
6759 | double val2 ; |
6760 | int ecode2 = 0 ; |
6761 | double temp3 ; |
6762 | double val3 ; |
6763 | int ecode3 = 0 ; |
6764 | double temp4 ; |
6765 | double val4 ; |
6766 | int ecode4 = 0 ; |
6767 | int res5 = SWIG_OLDOBJ((0)) ; |
6768 | PyObject * obj0 = 0 ; |
6769 | PyObject * obj1 = 0 ; |
6770 | PyObject * obj2 = 0 ; |
6771 | PyObject * obj3 = 0 ; |
6772 | PyObject * obj4 = 0 ; |
6773 | |
6774 | if (!PyArg_ParseTuple(args,(char *)"OOOOO:GTestSuite_test_value",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail; |
6775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6776 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
6778 | } |
6779 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6780 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6781 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6782 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
6783 | } |
6784 | temp2 = static_cast< double >(val2); |
6785 | arg2 = &temp2; |
6786 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
6787 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6788 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "double""'"); goto fail; } while (0); |
6789 | } |
6790 | temp3 = static_cast< double >(val3); |
6791 | arg3 = &temp3; |
6792 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
6793 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
6794 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "double""'"); goto fail; } while (0); |
6795 | } |
6796 | temp4 = static_cast< double >(val4); |
6797 | arg4 = &temp4; |
6798 | { |
6799 | std::string *ptr = (std::string *)0; |
6800 | res5 = SWIG_AsPtr_std_string(obj4, &ptr); |
6801 | if (!SWIG_IsOK(res5)(res5 >= 0)) { |
6802 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GTestSuite_test_value" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != ( -1)) ? res5 : -5)), "in method '" "GTestSuite_test_value" "', argument " "5"" of type '" "std::string const &""'"); goto fail; } while (0); |
6803 | } |
6804 | if (!ptr) { |
6805 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_value" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_value" "', argument " "5"" of type '" "std::string const &""'"); goto fail; } while(0); |
6806 | } |
6807 | arg5 = ptr; |
6808 | } |
6809 | { |
6810 | try { |
6811 | (arg1)->test_value((double const &)*arg2,(double const &)*arg3,(double const &)*arg4,(std::string const &)*arg5); |
6812 | } |
6813 | catch (const GException::out_of_range& e) { |
6814 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6815 | } |
6816 | catch (const GExceptionHandler& e) { |
6817 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6818 | } |
6819 | catch (const std::exception& e) { |
6820 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6821 | } |
6822 | } |
6823 | resultobj = SWIG_Py_Void(); |
6824 | if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) << 1)))) delete arg5; |
6825 | return resultobj; |
6826 | fail: |
6827 | if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) << 1)))) delete arg5; |
6828 | return NULL__null; |
6829 | } |
6830 | |
6831 | |
6832 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_value__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6833 | PyObject *resultobj = 0; |
6834 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6835 | double *arg2 = 0 ; |
6836 | double *arg3 = 0 ; |
6837 | double *arg4 = 0 ; |
6838 | void *argp1 = 0 ; |
6839 | int res1 = 0 ; |
6840 | double temp2 ; |
6841 | double val2 ; |
6842 | int ecode2 = 0 ; |
6843 | double temp3 ; |
6844 | double val3 ; |
6845 | int ecode3 = 0 ; |
6846 | double temp4 ; |
6847 | double val4 ; |
6848 | int ecode4 = 0 ; |
6849 | PyObject * obj0 = 0 ; |
6850 | PyObject * obj1 = 0 ; |
6851 | PyObject * obj2 = 0 ; |
6852 | PyObject * obj3 = 0 ; |
6853 | |
6854 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GTestSuite_test_value",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
6855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6856 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
6858 | } |
6859 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6860 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6861 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6862 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
6863 | } |
6864 | temp2 = static_cast< double >(val2); |
6865 | arg2 = &temp2; |
6866 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
6867 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6868 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "double""'"); goto fail; } while (0); |
6869 | } |
6870 | temp3 = static_cast< double >(val3); |
6871 | arg3 = &temp3; |
6872 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
6873 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
6874 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "GTestSuite_test_value" "', argument " "4"" of type '" "double""'"); goto fail; } while (0); |
6875 | } |
6876 | temp4 = static_cast< double >(val4); |
6877 | arg4 = &temp4; |
6878 | { |
6879 | try { |
6880 | (arg1)->test_value((double const &)*arg2,(double const &)*arg3,(double const &)*arg4); |
6881 | } |
6882 | catch (const GException::out_of_range& e) { |
6883 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6884 | } |
6885 | catch (const GExceptionHandler& e) { |
6886 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6887 | } |
6888 | catch (const std::exception& e) { |
6889 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6890 | } |
6891 | } |
6892 | resultobj = SWIG_Py_Void(); |
6893 | return resultobj; |
6894 | fail: |
6895 | return NULL__null; |
6896 | } |
6897 | |
6898 | |
6899 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_value__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6900 | PyObject *resultobj = 0; |
6901 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
6902 | double *arg2 = 0 ; |
6903 | double *arg3 = 0 ; |
6904 | void *argp1 = 0 ; |
6905 | int res1 = 0 ; |
6906 | double temp2 ; |
6907 | double val2 ; |
6908 | int ecode2 = 0 ; |
6909 | double temp3 ; |
6910 | double val3 ; |
6911 | int ecode3 = 0 ; |
6912 | PyObject * obj0 = 0 ; |
6913 | PyObject * obj1 = 0 ; |
6914 | PyObject * obj2 = 0 ; |
6915 | |
6916 | if (!PyArg_ParseTuple(args,(char *)"OOO:GTestSuite_test_value",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
6917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
6918 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_value" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
6920 | } |
6921 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
6922 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6923 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6924 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuite_test_value" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
6925 | } |
6926 | temp2 = static_cast< double >(val2); |
6927 | arg2 = &temp2; |
6928 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
6929 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6930 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GTestSuite_test_value" "', argument " "3"" of type '" "double""'"); goto fail; } while (0); |
6931 | } |
6932 | temp3 = static_cast< double >(val3); |
6933 | arg3 = &temp3; |
6934 | { |
6935 | try { |
6936 | (arg1)->test_value((double const &)*arg2,(double const &)*arg3); |
6937 | } |
6938 | catch (const GException::out_of_range& e) { |
6939 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6940 | } |
6941 | catch (const GExceptionHandler& e) { |
6942 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6943 | } |
6944 | catch (const std::exception& e) { |
6945 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6946 | } |
6947 | } |
6948 | resultobj = SWIG_Py_Void(); |
6949 | return resultobj; |
6950 | fail: |
6951 | return NULL__null; |
6952 | } |
6953 | |
6954 | |
6955 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_value(PyObject *self, PyObject *args) { |
6956 | int argc; |
6957 | PyObject *argv[7]; |
6958 | int ii; |
6959 | |
6960 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6961 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6962 | for (ii = 0; (ii < 6) && (ii < argc); ii++) { |
6963 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6964 | } |
6965 | if (argc == 3) { |
6966 | int _v; |
6967 | void *vptr = 0; |
6968 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6969 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6970 | if (_v) { |
6971 | { |
6972 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
6973 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6974 | } |
6975 | if (_v) { |
6976 | { |
6977 | int res = SWIG_AsVal_int(argv[2], NULL__null); |
6978 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6979 | } |
6980 | if (_v) { |
6981 | return _wrap_GTestSuite_test_value__SWIG_2(self, args); |
6982 | } |
6983 | } |
6984 | } |
6985 | } |
6986 | if (argc == 3) { |
6987 | int _v; |
6988 | void *vptr = 0; |
6989 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
6990 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6991 | if (_v) { |
6992 | { |
6993 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6994 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6995 | } |
6996 | if (_v) { |
6997 | { |
6998 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
6999 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7000 | } |
7001 | if (_v) { |
7002 | return _wrap_GTestSuite_test_value__SWIG_6(self, args); |
7003 | } |
7004 | } |
7005 | } |
7006 | } |
7007 | if (argc == 4) { |
7008 | int _v; |
7009 | void *vptr = 0; |
7010 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7011 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7012 | if (_v) { |
7013 | { |
7014 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
7015 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7016 | } |
7017 | if (_v) { |
7018 | { |
7019 | int res = SWIG_AsVal_int(argv[2], NULL__null); |
7020 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7021 | } |
7022 | if (_v) { |
7023 | int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); |
7024 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7025 | if (_v) { |
7026 | return _wrap_GTestSuite_test_value__SWIG_1(self, args); |
7027 | } |
7028 | } |
7029 | } |
7030 | } |
7031 | } |
7032 | if (argc == 4) { |
7033 | int _v; |
7034 | void *vptr = 0; |
7035 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7036 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7037 | if (_v) { |
7038 | { |
7039 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
7040 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7041 | } |
7042 | if (_v) { |
7043 | { |
7044 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
7045 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7046 | } |
7047 | if (_v) { |
7048 | { |
7049 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
7050 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7051 | } |
7052 | if (_v) { |
7053 | return _wrap_GTestSuite_test_value__SWIG_5(self, args); |
7054 | } |
7055 | } |
7056 | } |
7057 | } |
7058 | } |
7059 | if (argc == 5) { |
7060 | int _v; |
7061 | void *vptr = 0; |
7062 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7063 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7064 | if (_v) { |
7065 | { |
7066 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
7067 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7068 | } |
7069 | if (_v) { |
7070 | { |
7071 | int res = SWIG_AsVal_int(argv[2], NULL__null); |
7072 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7073 | } |
7074 | if (_v) { |
7075 | int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); |
7076 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7077 | if (_v) { |
7078 | int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0)); |
7079 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7080 | if (_v) { |
7081 | return _wrap_GTestSuite_test_value__SWIG_0(self, args); |
7082 | } |
7083 | } |
7084 | } |
7085 | } |
7086 | } |
7087 | } |
7088 | if (argc == 5) { |
7089 | int _v; |
7090 | void *vptr = 0; |
7091 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7092 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7093 | if (_v) { |
7094 | { |
7095 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
7096 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7097 | } |
7098 | if (_v) { |
7099 | { |
7100 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
7101 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7102 | } |
7103 | if (_v) { |
7104 | { |
7105 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
7106 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7107 | } |
7108 | if (_v) { |
7109 | int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0)); |
7110 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7111 | if (_v) { |
7112 | return _wrap_GTestSuite_test_value__SWIG_4(self, args); |
7113 | } |
7114 | } |
7115 | } |
7116 | } |
7117 | } |
7118 | } |
7119 | if (argc == 6) { |
7120 | int _v; |
7121 | void *vptr = 0; |
7122 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7123 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7124 | if (_v) { |
7125 | { |
7126 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
7127 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7128 | } |
7129 | if (_v) { |
7130 | { |
7131 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
7132 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7133 | } |
7134 | if (_v) { |
7135 | { |
7136 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
7137 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7138 | } |
7139 | if (_v) { |
7140 | int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0)); |
7141 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7142 | if (_v) { |
7143 | int res = SWIG_AsPtr_std_string(argv[5], (std::string**)(0)); |
7144 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7145 | if (_v) { |
7146 | return _wrap_GTestSuite_test_value__SWIG_3(self, args); |
7147 | } |
7148 | } |
7149 | } |
7150 | } |
7151 | } |
7152 | } |
7153 | } |
7154 | |
7155 | fail: |
7156 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTestSuite_test_value'.\n" |
7157 | " Possible C/C++ prototypes are:\n" |
7158 | " GTestSuite::test_value(int const &,int const &,std::string const &,std::string const &)\n" |
7159 | " GTestSuite::test_value(int const &,int const &,std::string const &)\n" |
7160 | " GTestSuite::test_value(int const &,int const &)\n" |
7161 | " GTestSuite::test_value(double const &,double const &,double const &,std::string const &,std::string const &)\n" |
7162 | " GTestSuite::test_value(double const &,double const &,double const &,std::string const &)\n" |
7163 | " GTestSuite::test_value(double const &,double const &,double const &)\n" |
7164 | " GTestSuite::test_value(double const &,double const &)\n"); |
7165 | return 0; |
7166 | } |
7167 | |
7168 | |
7169 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_try(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7170 | PyObject *resultobj = 0; |
7171 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7172 | std::string *arg2 = 0 ; |
7173 | void *argp1 = 0 ; |
7174 | int res1 = 0 ; |
7175 | int res2 = SWIG_OLDOBJ((0)) ; |
7176 | PyObject * obj0 = 0 ; |
7177 | PyObject * obj1 = 0 ; |
7178 | |
7179 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuite_test_try",&obj0,&obj1)) SWIG_failgoto fail; |
7180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7181 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_try" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_try" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
7183 | } |
7184 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7185 | { |
7186 | std::string *ptr = (std::string *)0; |
7187 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7188 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7189 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestSuite_test_try" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestSuite_test_try" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
7190 | } |
7191 | if (!ptr) { |
7192 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_try" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_try" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
7193 | } |
7194 | arg2 = ptr; |
7195 | } |
7196 | { |
7197 | try { |
7198 | (arg1)->test_try((std::string const &)*arg2); |
7199 | } |
7200 | catch (const GException::out_of_range& e) { |
7201 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7202 | } |
7203 | catch (const GExceptionHandler& e) { |
7204 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7205 | } |
7206 | catch (const std::exception& e) { |
7207 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7208 | } |
7209 | } |
7210 | resultobj = SWIG_Py_Void(); |
7211 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7212 | return resultobj; |
7213 | fail: |
7214 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7215 | return NULL__null; |
7216 | } |
7217 | |
7218 | |
7219 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_try_success(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7220 | PyObject *resultobj = 0; |
7221 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7222 | void *argp1 = 0 ; |
7223 | int res1 = 0 ; |
7224 | PyObject * obj0 = 0 ; |
7225 | |
7226 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_test_try_success",&obj0)) SWIG_failgoto fail; |
7227 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7228 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_try_success" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_try_success" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail ; } while(0); |
7230 | } |
7231 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7232 | { |
7233 | try { |
7234 | (arg1)->test_try_success(); |
7235 | } |
7236 | catch (const GException::out_of_range& e) { |
7237 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7238 | } |
7239 | catch (const GExceptionHandler& e) { |
7240 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7241 | } |
7242 | catch (const std::exception& e) { |
7243 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7244 | } |
7245 | } |
7246 | resultobj = SWIG_Py_Void(); |
7247 | return resultobj; |
7248 | fail: |
7249 | return NULL__null; |
7250 | } |
7251 | |
7252 | |
7253 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_try_failure__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7254 | PyObject *resultobj = 0; |
7255 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7256 | std::string *arg2 = 0 ; |
7257 | std::string *arg3 = 0 ; |
7258 | void *argp1 = 0 ; |
7259 | int res1 = 0 ; |
7260 | int res2 = SWIG_OLDOBJ((0)) ; |
7261 | int res3 = SWIG_OLDOBJ((0)) ; |
7262 | PyObject * obj0 = 0 ; |
7263 | PyObject * obj1 = 0 ; |
7264 | PyObject * obj2 = 0 ; |
7265 | |
7266 | if (!PyArg_ParseTuple(args,(char *)"OOO:GTestSuite_test_try_failure",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7268 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_try_failure" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_try_failure" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail ; } while(0); |
7270 | } |
7271 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7272 | { |
7273 | std::string *ptr = (std::string *)0; |
7274 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7275 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7276 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestSuite_test_try_failure" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestSuite_test_try_failure" "', argument " "2"" of type '" "std::string const &""'") ; goto fail; } while(0); |
7277 | } |
7278 | if (!ptr) { |
7279 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_try_failure" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_try_failure" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
7280 | } |
7281 | arg2 = ptr; |
7282 | } |
7283 | { |
7284 | std::string *ptr = (std::string *)0; |
7285 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
7286 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
7287 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTestSuite_test_try_failure" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GTestSuite_test_try_failure" "', argument " "3"" of type '" "std::string const &""'") ; goto fail; } while(0); |
7288 | } |
7289 | if (!ptr) { |
7290 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_try_failure" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_try_failure" "', argument " "3" " of type '" "std::string const &""'"); goto fail; } while (0); |
7291 | } |
7292 | arg3 = ptr; |
7293 | } |
7294 | { |
7295 | try { |
7296 | (arg1)->test_try_failure((std::string const &)*arg2,(std::string const &)*arg3); |
7297 | } |
7298 | catch (const GException::out_of_range& e) { |
7299 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7300 | } |
7301 | catch (const GExceptionHandler& e) { |
7302 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7303 | } |
7304 | catch (const std::exception& e) { |
7305 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7306 | } |
7307 | } |
7308 | resultobj = SWIG_Py_Void(); |
7309 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7310 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
7311 | return resultobj; |
7312 | fail: |
7313 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7314 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
7315 | return NULL__null; |
7316 | } |
7317 | |
7318 | |
7319 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_try_failure__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7320 | PyObject *resultobj = 0; |
7321 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7322 | std::string *arg2 = 0 ; |
7323 | void *argp1 = 0 ; |
7324 | int res1 = 0 ; |
7325 | int res2 = SWIG_OLDOBJ((0)) ; |
7326 | PyObject * obj0 = 0 ; |
7327 | PyObject * obj1 = 0 ; |
7328 | |
7329 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuite_test_try_failure",&obj0,&obj1)) SWIG_failgoto fail; |
7330 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7331 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_try_failure" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_try_failure" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail ; } while(0); |
7333 | } |
7334 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7335 | { |
7336 | std::string *ptr = (std::string *)0; |
7337 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7338 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7339 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestSuite_test_try_failure" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestSuite_test_try_failure" "', argument " "2"" of type '" "std::string const &""'") ; goto fail; } while(0); |
7340 | } |
7341 | if (!ptr) { |
7342 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_try_failure" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_try_failure" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
7343 | } |
7344 | arg2 = ptr; |
7345 | } |
7346 | { |
7347 | try { |
7348 | (arg1)->test_try_failure((std::string const &)*arg2); |
7349 | } |
7350 | catch (const GException::out_of_range& e) { |
7351 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7352 | } |
7353 | catch (const GExceptionHandler& e) { |
7354 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7355 | } |
7356 | catch (const std::exception& e) { |
7357 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7358 | } |
7359 | } |
7360 | resultobj = SWIG_Py_Void(); |
7361 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7362 | return resultobj; |
7363 | fail: |
7364 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7365 | return NULL__null; |
7366 | } |
7367 | |
7368 | |
7369 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_try_failure__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7370 | PyObject *resultobj = 0; |
7371 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7372 | void *argp1 = 0 ; |
7373 | int res1 = 0 ; |
7374 | PyObject * obj0 = 0 ; |
7375 | |
7376 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_test_try_failure",&obj0)) SWIG_failgoto fail; |
7377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7378 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_try_failure" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_try_failure" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail ; } while(0); |
7380 | } |
7381 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7382 | { |
7383 | try { |
7384 | (arg1)->test_try_failure(); |
7385 | } |
7386 | catch (const GException::out_of_range& e) { |
7387 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7388 | } |
7389 | catch (const GExceptionHandler& e) { |
7390 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7391 | } |
7392 | catch (const std::exception& e) { |
7393 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7394 | } |
7395 | } |
7396 | resultobj = SWIG_Py_Void(); |
7397 | return resultobj; |
7398 | fail: |
7399 | return NULL__null; |
7400 | } |
7401 | |
7402 | |
7403 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_try_failure__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7404 | PyObject *resultobj = 0; |
7405 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7406 | std::exception *arg2 = 0 ; |
7407 | void *argp1 = 0 ; |
7408 | int res1 = 0 ; |
7409 | void *argp2 = 0 ; |
7410 | int res2 = 0 ; |
7411 | PyObject * obj0 = 0 ; |
7412 | PyObject * obj1 = 0 ; |
7413 | |
7414 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuite_test_try_failure",&obj0,&obj1)) SWIG_failgoto fail; |
7415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7416 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_test_try_failure" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_test_try_failure" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail ; } while(0); |
7418 | } |
7419 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7420 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__exception, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[9], 0 | 0, 0); |
7421 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7422 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestSuite_test_try_failure" "', argument " "2"" of type '" "std::exception const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestSuite_test_try_failure" "', argument " "2"" of type '" "std::exception const &""'" ); goto fail; } while(0); |
7423 | } |
7424 | if (!argp2) { |
7425 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_test_try_failure" "', argument " "2"" of type '" "std::exception const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_test_try_failure" "', argument " "2" " of type '" "std::exception const &""'"); goto fail; } while (0); |
7426 | } |
7427 | arg2 = reinterpret_cast< std::exception * >(argp2); |
7428 | { |
7429 | try { |
7430 | (arg1)->test_try_failure((std::exception const &)*arg2); |
7431 | } |
7432 | catch (const GException::out_of_range& e) { |
7433 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7434 | } |
7435 | catch (const GExceptionHandler& e) { |
7436 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7437 | } |
7438 | catch (const std::exception& e) { |
7439 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7440 | } |
7441 | } |
7442 | resultobj = SWIG_Py_Void(); |
7443 | return resultobj; |
7444 | fail: |
7445 | return NULL__null; |
7446 | } |
7447 | |
7448 | |
7449 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_test_try_failure(PyObject *self, PyObject *args) { |
7450 | int argc; |
7451 | PyObject *argv[4]; |
7452 | int ii; |
7453 | |
7454 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7455 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7456 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
7457 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7458 | } |
7459 | if (argc == 1) { |
7460 | int _v; |
7461 | void *vptr = 0; |
7462 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7463 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7464 | if (_v) { |
7465 | return _wrap_GTestSuite_test_try_failure__SWIG_2(self, args); |
7466 | } |
7467 | } |
7468 | if (argc == 2) { |
7469 | int _v; |
7470 | void *vptr = 0; |
7471 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7472 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7473 | if (_v) { |
7474 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__exception, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[9], 0, 0); |
7475 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7476 | if (_v) { |
7477 | return _wrap_GTestSuite_test_try_failure__SWIG_3(self, args); |
7478 | } |
7479 | } |
7480 | } |
7481 | if (argc == 2) { |
7482 | int _v; |
7483 | void *vptr = 0; |
7484 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7485 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7486 | if (_v) { |
7487 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
7488 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7489 | if (_v) { |
7490 | return _wrap_GTestSuite_test_try_failure__SWIG_1(self, args); |
7491 | } |
7492 | } |
7493 | } |
7494 | if (argc == 3) { |
7495 | int _v; |
7496 | void *vptr = 0; |
7497 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestSuite, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
7498 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7499 | if (_v) { |
7500 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
7501 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7502 | if (_v) { |
7503 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
7504 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7505 | if (_v) { |
7506 | return _wrap_GTestSuite_test_try_failure__SWIG_0(self, args); |
7507 | } |
7508 | } |
7509 | } |
7510 | } |
7511 | |
7512 | fail: |
7513 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTestSuite_test_try_failure'.\n" |
7514 | " Possible C/C++ prototypes are:\n" |
7515 | " GTestSuite::test_try_failure(std::string const &,std::string const &)\n" |
7516 | " GTestSuite::test_try_failure(std::string const &)\n" |
7517 | " GTestSuite::test_try_failure()\n" |
7518 | " GTestSuite::test_try_failure(std::exception const &)\n"); |
7519 | return 0; |
7520 | } |
7521 | |
7522 | |
7523 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_exception_failure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7524 | PyObject *resultobj = 0; |
7525 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7526 | std::string *arg2 = 0 ; |
7527 | void *argp1 = 0 ; |
7528 | int res1 = 0 ; |
7529 | int res2 = SWIG_OLDOBJ((0)) ; |
7530 | PyObject * obj0 = 0 ; |
7531 | PyObject * obj1 = 0 ; |
7532 | GException::test_failure *result = 0 ; |
7533 | |
7534 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuite_exception_failure",&obj0,&obj1)) SWIG_failgoto fail; |
7535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7536 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_exception_failure" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_exception_failure" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail ; } while(0); |
7538 | } |
7539 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7540 | { |
7541 | std::string *ptr = (std::string *)0; |
7542 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7543 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7544 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestSuite_exception_failure" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestSuite_exception_failure" "', argument " "2"" of type '" "std::string const &""'") ; goto fail; } while(0); |
7545 | } |
7546 | if (!ptr) { |
7547 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_exception_failure" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_exception_failure" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
7548 | } |
7549 | arg2 = ptr; |
7550 | } |
7551 | { |
7552 | try { |
7553 | result = (GException::test_failure *) &(arg1)->exception_failure((std::string const &)*arg2); |
7554 | } |
7555 | catch (const GException::out_of_range& e) { |
7556 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7557 | } |
7558 | catch (const GExceptionHandler& e) { |
7559 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7560 | } |
7561 | catch (const std::exception& e) { |
7562 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7563 | } |
7564 | } |
7565 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GException__test_failure, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[3], 0 | 0); |
7566 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7567 | return resultobj; |
7568 | fail: |
7569 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7570 | return NULL__null; |
7571 | } |
7572 | |
7573 | |
7574 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_exception_error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7575 | PyObject *resultobj = 0; |
7576 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7577 | std::string *arg2 = 0 ; |
7578 | void *argp1 = 0 ; |
7579 | int res1 = 0 ; |
7580 | int res2 = SWIG_OLDOBJ((0)) ; |
7581 | PyObject * obj0 = 0 ; |
7582 | PyObject * obj1 = 0 ; |
7583 | GException::test_error *result = 0 ; |
7584 | |
7585 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuite_exception_error",&obj0,&obj1)) SWIG_failgoto fail; |
7586 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7587 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_exception_error" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_exception_error" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail ; } while(0); |
7589 | } |
7590 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7591 | { |
7592 | std::string *ptr = (std::string *)0; |
7593 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7594 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7595 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestSuite_exception_error" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestSuite_exception_error" "', argument " "2"" of type '" "std::string const &""'") ; goto fail; } while(0); |
7596 | } |
7597 | if (!ptr) { |
7598 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite_exception_error" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite_exception_error" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
7599 | } |
7600 | arg2 = ptr; |
7601 | } |
7602 | { |
7603 | try { |
7604 | result = (GException::test_error *) &(arg1)->exception_error((std::string const &)*arg2); |
7605 | } |
7606 | catch (const GException::out_of_range& e) { |
7607 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7608 | } |
7609 | catch (const GExceptionHandler& e) { |
7610 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7611 | } |
7612 | catch (const std::exception& e) { |
7613 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7614 | } |
7615 | } |
7616 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GException__test_error, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], 0 | 0); |
7617 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7618 | return resultobj; |
7619 | fail: |
7620 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7621 | return NULL__null; |
7622 | } |
7623 | |
7624 | |
7625 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_errors(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7626 | PyObject *resultobj = 0; |
7627 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7628 | void *argp1 = 0 ; |
7629 | int res1 = 0 ; |
7630 | PyObject * obj0 = 0 ; |
7631 | int *result = 0 ; |
7632 | |
7633 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_errors",&obj0)) SWIG_failgoto fail; |
7634 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7635 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_errors" "', argument " "1"" of type '" "GTestSuite const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_errors" "', argument " "1"" of type '" "GTestSuite const *""'"); goto fail; } while (0); |
7637 | } |
7638 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7639 | { |
7640 | try { |
7641 | result = (int *) &((GTestSuite const *)arg1)->errors(); |
7642 | } |
7643 | catch (const GException::out_of_range& e) { |
7644 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7645 | } |
7646 | catch (const GExceptionHandler& e) { |
7647 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7648 | } |
7649 | catch (const std::exception& e) { |
7650 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7651 | } |
7652 | } |
7653 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7654 | return resultobj; |
7655 | fail: |
7656 | return NULL__null; |
7657 | } |
7658 | |
7659 | |
7660 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_failures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7661 | PyObject *resultobj = 0; |
7662 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7663 | void *argp1 = 0 ; |
7664 | int res1 = 0 ; |
7665 | PyObject * obj0 = 0 ; |
7666 | int *result = 0 ; |
7667 | |
7668 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_failures",&obj0)) SWIG_failgoto fail; |
7669 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7670 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_failures" "', argument " "1"" of type '" "GTestSuite const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_failures" "', argument " "1"" of type '" "GTestSuite const *""'"); goto fail; } while (0); |
7672 | } |
7673 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7674 | { |
7675 | try { |
7676 | result = (int *) &((GTestSuite const *)arg1)->failures(); |
7677 | } |
7678 | catch (const GException::out_of_range& e) { |
7679 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7680 | } |
7681 | catch (const GExceptionHandler& e) { |
7682 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7683 | } |
7684 | catch (const std::exception& e) { |
7685 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7686 | } |
7687 | } |
7688 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7689 | return resultobj; |
7690 | fail: |
7691 | return NULL__null; |
7692 | } |
7693 | |
7694 | |
7695 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_success(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7696 | PyObject *resultobj = 0; |
7697 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7698 | void *argp1 = 0 ; |
7699 | int res1 = 0 ; |
7700 | PyObject * obj0 = 0 ; |
7701 | int result; |
7702 | |
7703 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_success",&obj0)) SWIG_failgoto fail; |
7704 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7705 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7706 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_success" "', argument " "1"" of type '" "GTestSuite const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_success" "', argument " "1"" of type '" "GTestSuite const *""'"); goto fail; } while (0); |
7707 | } |
7708 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7709 | { |
7710 | try { |
7711 | result = (int)((GTestSuite const *)arg1)->success(); |
7712 | } |
7713 | catch (const GException::out_of_range& e) { |
7714 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7715 | } |
7716 | catch (const GExceptionHandler& e) { |
7717 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7718 | } |
7719 | catch (const std::exception& e) { |
7720 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7721 | } |
7722 | } |
7723 | resultobj = SWIG_From_int(static_cast< int >(result)); |
7724 | return resultobj; |
7725 | fail: |
7726 | return NULL__null; |
7727 | } |
7728 | |
7729 | |
7730 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_timestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7731 | PyObject *resultobj = 0; |
7732 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7733 | void *argp1 = 0 ; |
7734 | int res1 = 0 ; |
7735 | PyObject * obj0 = 0 ; |
7736 | time_t *result = 0 ; |
7737 | |
7738 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_timestamp",&obj0)) SWIG_failgoto fail; |
7739 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7740 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_timestamp" "', argument " "1"" of type '" "GTestSuite const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_timestamp" "', argument " "1"" of type '" "GTestSuite const *""'"); goto fail; } while (0); |
7742 | } |
7743 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7744 | { |
7745 | try { |
7746 | result = (time_t *) &((GTestSuite const *)arg1)->timestamp(); |
7747 | } |
7748 | catch (const GException::out_of_range& e) { |
7749 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7750 | } |
7751 | catch (const GExceptionHandler& e) { |
7752 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7753 | } |
7754 | catch (const std::exception& e) { |
7755 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7756 | } |
7757 | } |
7758 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_time_t, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], 0 | 0); |
7759 | return resultobj; |
7760 | fail: |
7761 | return NULL__null; |
7762 | } |
7763 | |
7764 | |
7765 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite_duration(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7766 | PyObject *resultobj = 0; |
7767 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7768 | void *argp1 = 0 ; |
7769 | int res1 = 0 ; |
7770 | PyObject * obj0 = 0 ; |
7771 | double result; |
7772 | |
7773 | if (!PyArg_ParseTuple(args,(char *)"O:GTestSuite_duration",&obj0)) SWIG_failgoto fail; |
7774 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7775 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite_duration" "', argument " "1"" of type '" "GTestSuite const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite_duration" "', argument " "1"" of type '" "GTestSuite const *""'"); goto fail; } while (0); |
7777 | } |
7778 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7779 | { |
7780 | try { |
7781 | result = (double)((GTestSuite const *)arg1)->duration(); |
7782 | } |
7783 | catch (const GException::out_of_range& e) { |
7784 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7785 | } |
7786 | catch (const GExceptionHandler& e) { |
7787 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7788 | } |
7789 | catch (const std::exception& e) { |
7790 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7791 | } |
7792 | } |
7793 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
7794 | return resultobj; |
7795 | fail: |
7796 | return NULL__null; |
7797 | } |
7798 | |
7799 | |
7800 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7801 | PyObject *resultobj = 0; |
7802 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7803 | int *arg2 = 0 ; |
7804 | void *argp1 = 0 ; |
7805 | int res1 = 0 ; |
7806 | int temp2 ; |
7807 | int val2 ; |
7808 | int ecode2 = 0 ; |
7809 | PyObject * obj0 = 0 ; |
7810 | PyObject * obj1 = 0 ; |
7811 | GTestCase *result = 0 ; |
7812 | |
7813 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestSuite___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
7814 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7815 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite___getitem__" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite___getitem__" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
7817 | } |
7818 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7819 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7820 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7821 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuite___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuite___getitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
7822 | } |
7823 | temp2 = static_cast< int >(val2); |
7824 | arg2 = &temp2; |
7825 | { |
7826 | try { |
7827 | result = (GTestCase *) >estSuite___getitem__(arg1,(int const &)*arg2); |
7828 | } |
7829 | catch (const GException::out_of_range& e) { |
7830 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7831 | } |
7832 | catch (const GExceptionHandler& e) { |
7833 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7834 | } |
7835 | catch (const std::exception& e) { |
7836 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7837 | } |
7838 | } |
7839 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
7840 | return resultobj; |
7841 | fail: |
7842 | return NULL__null; |
7843 | } |
7844 | |
7845 | |
7846 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestSuite___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7847 | PyObject *resultobj = 0; |
7848 | GTestSuite *arg1 = (GTestSuite *) 0 ; |
7849 | int *arg2 = 0 ; |
7850 | GTestCase *arg3 = 0 ; |
7851 | void *argp1 = 0 ; |
7852 | int res1 = 0 ; |
7853 | int temp2 ; |
7854 | int val2 ; |
7855 | int ecode2 = 0 ; |
7856 | void *argp3 = 0 ; |
7857 | int res3 = 0 ; |
7858 | PyObject * obj0 = 0 ; |
7859 | PyObject * obj1 = 0 ; |
7860 | PyObject * obj2 = 0 ; |
7861 | |
7862 | if (!PyArg_ParseTuple(args,(char *)"OOO:GTestSuite___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
7864 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestSuite___setitem__" "', argument " "1"" of type '" "GTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestSuite___setitem__" "', argument " "1"" of type '" "GTestSuite *""'"); goto fail; } while(0); |
7866 | } |
7867 | arg1 = reinterpret_cast< GTestSuite * >(argp1); |
7868 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7869 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7870 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestSuite___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestSuite___setitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
7871 | } |
7872 | temp2 = static_cast< int >(val2); |
7873 | arg2 = &temp2; |
7874 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTestCase, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5], 0 | 0, 0); |
7875 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
7876 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTestSuite___setitem__" "', argument " "3"" of type '" "GTestCase const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GTestSuite___setitem__" "', argument " "3"" of type '" "GTestCase const &""'"); goto fail; } while (0); |
7877 | } |
7878 | if (!argp3) { |
7879 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestSuite___setitem__" "', argument " "3"" of type '" "GTestCase const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestSuite___setitem__" "', argument " "3"" of type '" "GTestCase const &""'"); goto fail; } while(0); |
7880 | } |
7881 | arg3 = reinterpret_cast< GTestCase * >(argp3); |
7882 | { |
7883 | try { |
7884 | GTestSuite___setitem__(arg1,(int const &)*arg2,(GTestCase const &)*arg3); |
7885 | } |
7886 | catch (const GException::out_of_range& e) { |
7887 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7888 | } |
7889 | catch (const GExceptionHandler& e) { |
7890 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7891 | } |
7892 | catch (const std::exception& e) { |
7893 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7894 | } |
7895 | } |
7896 | resultobj = SWIG_Py_Void(); |
7897 | return resultobj; |
7898 | fail: |
7899 | return NULL__null; |
7900 | } |
7901 | |
7902 | |
7903 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GTestSuite_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7904 | PyObject *obj; |
7905 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
7906 | SWIG_TypeNewClientData(SWIGTYPE_p_GTestSuiteswig_types[6], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
7907 | return SWIG_Py_Void(); |
7908 | } |
7909 | |
7910 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPythonTestSuite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7911 | PyObject *resultobj = 0; |
7912 | GPythonTestSuite *result = 0 ; |
7913 | |
7914 | if (!PyArg_ParseTuple(args,(char *)":new_GPythonTestSuite")) SWIG_failgoto fail; |
7915 | { |
7916 | try { |
7917 | result = (GPythonTestSuite *)new GPythonTestSuite(); |
7918 | } |
7919 | catch (const GException::out_of_range& e) { |
7920 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7921 | } |
7922 | catch (const GExceptionHandler& e) { |
7923 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7924 | } |
7925 | catch (const std::exception& e) { |
7926 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7927 | } |
7928 | } |
7929 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPythonTestSuite, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
7930 | return resultobj; |
7931 | fail: |
7932 | return NULL__null; |
7933 | } |
7934 | |
7935 | |
7936 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GPythonTestSuite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7937 | PyObject *resultobj = 0; |
7938 | GPythonTestSuite *arg1 = (GPythonTestSuite *) 0 ; |
7939 | void *argp1 = 0 ; |
7940 | int res1 = 0 ; |
7941 | PyObject * obj0 = 0 ; |
7942 | |
7943 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GPythonTestSuite",&obj0)) SWIG_failgoto fail; |
7944 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPythonTestSuite, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0x1 | 0, 0); |
7945 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GPythonTestSuite" "', argument " "1"" of type '" "GPythonTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GPythonTestSuite" "', argument " "1"" of type '" "GPythonTestSuite *""'"); goto fail; } while (0); |
7947 | } |
7948 | arg1 = reinterpret_cast< GPythonTestSuite * >(argp1); |
7949 | { |
7950 | try { |
7951 | delete arg1; |
7952 | } |
7953 | catch (const GException::out_of_range& e) { |
7954 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7955 | } |
7956 | catch (const GExceptionHandler& e) { |
7957 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7958 | } |
7959 | catch (const std::exception& e) { |
7960 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7961 | } |
7962 | } |
7963 | resultobj = SWIG_Py_Void(); |
7964 | return resultobj; |
7965 | fail: |
7966 | return NULL__null; |
7967 | } |
7968 | |
7969 | |
7970 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPythonTestSuite_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7971 | PyObject *resultobj = 0; |
7972 | GPythonTestSuite *arg1 = (GPythonTestSuite *) 0 ; |
7973 | void *argp1 = 0 ; |
7974 | int res1 = 0 ; |
7975 | PyObject * obj0 = 0 ; |
7976 | |
7977 | if (!PyArg_ParseTuple(args,(char *)"O:GPythonTestSuite_set",&obj0)) SWIG_failgoto fail; |
7978 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPythonTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7979 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPythonTestSuite_set" "', argument " "1"" of type '" "GPythonTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPythonTestSuite_set" "', argument " "1"" of type '" "GPythonTestSuite *""'"); goto fail; } while (0); |
7981 | } |
7982 | arg1 = reinterpret_cast< GPythonTestSuite * >(argp1); |
7983 | { |
7984 | try { |
7985 | (arg1)->set(); |
7986 | } |
7987 | catch (const GException::out_of_range& e) { |
7988 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7989 | } |
7990 | catch (const GExceptionHandler& e) { |
7991 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7992 | } |
7993 | catch (const std::exception& e) { |
7994 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7995 | } |
7996 | } |
7997 | resultobj = SWIG_Py_Void(); |
7998 | return resultobj; |
7999 | fail: |
8000 | return NULL__null; |
8001 | } |
8002 | |
8003 | |
8004 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPythonTestSuite_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8005 | PyObject *resultobj = 0; |
8006 | GPythonTestSuite *arg1 = (GPythonTestSuite *) 0 ; |
8007 | void *argp1 = 0 ; |
8008 | int res1 = 0 ; |
8009 | PyObject * obj0 = 0 ; |
8010 | GPythonTestSuite *result = 0 ; |
8011 | |
8012 | if (!PyArg_ParseTuple(args,(char *)"O:GPythonTestSuite_clone",&obj0)) SWIG_failgoto fail; |
8013 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPythonTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8014 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8015 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPythonTestSuite_clone" "', argument " "1"" of type '" "GPythonTestSuite const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPythonTestSuite_clone" "', argument " "1"" of type '" "GPythonTestSuite const *""'"); goto fail; } while(0); |
8016 | } |
8017 | arg1 = reinterpret_cast< GPythonTestSuite * >(argp1); |
8018 | { |
8019 | try { |
8020 | result = (GPythonTestSuite *)((GPythonTestSuite const *)arg1)->clone(); |
8021 | } |
8022 | catch (const GException::out_of_range& e) { |
8023 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8024 | } |
8025 | catch (const GExceptionHandler& e) { |
8026 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8027 | } |
8028 | catch (const std::exception& e) { |
8029 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8030 | } |
8031 | } |
8032 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPythonTestSuite, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], 0 | 0); |
8033 | return resultobj; |
8034 | fail: |
8035 | return NULL__null; |
8036 | } |
8037 | |
8038 | |
8039 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPythonTestSuite_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8040 | PyObject *resultobj = 0; |
8041 | GPythonTestSuite *arg1 = (GPythonTestSuite *) 0 ; |
8042 | PyObject *arg2 = (PyObject *) 0 ; |
8043 | std::string *arg3 = 0 ; |
8044 | void *argp1 = 0 ; |
8045 | int res1 = 0 ; |
8046 | int res3 = SWIG_OLDOBJ((0)) ; |
8047 | PyObject * obj0 = 0 ; |
8048 | PyObject * obj1 = 0 ; |
8049 | PyObject * obj2 = 0 ; |
8050 | |
8051 | if (!PyArg_ParseTuple(args,(char *)"OOO:GPythonTestSuite_append",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
8052 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPythonTestSuite, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8053 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPythonTestSuite_append" "', argument " "1"" of type '" "GPythonTestSuite *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPythonTestSuite_append" "', argument " "1"" of type '" "GPythonTestSuite *""'"); goto fail; } while (0); |
8055 | } |
8056 | arg1 = reinterpret_cast< GPythonTestSuite * >(argp1); |
8057 | arg2 = obj1; |
8058 | { |
8059 | std::string *ptr = (std::string *)0; |
8060 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
8061 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
8062 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GPythonTestSuite_append" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GPythonTestSuite_append" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
8063 | } |
8064 | if (!ptr) { |
8065 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPythonTestSuite_append" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPythonTestSuite_append" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0); |
8066 | } |
8067 | arg3 = ptr; |
8068 | } |
8069 | { |
8070 | try { |
8071 | (arg1)->append(arg2,(std::string const &)*arg3); |
8072 | } |
8073 | catch (const GException::out_of_range& e) { |
8074 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8075 | } |
8076 | catch (const GExceptionHandler& e) { |
8077 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8078 | } |
8079 | catch (const std::exception& e) { |
8080 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8081 | } |
8082 | } |
8083 | resultobj = SWIG_Py_Void(); |
8084 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
8085 | return resultobj; |
8086 | fail: |
8087 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
8088 | return NULL__null; |
8089 | } |
8090 | |
8091 | |
8092 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GPythonTestSuite_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8093 | PyObject *obj; |
8094 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
8095 | SWIG_TypeNewClientData(SWIGTYPE_p_GPythonTestSuiteswig_types[4], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
8096 | return SWIG_Py_Void(); |
8097 | } |
8098 | |
8099 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTestCase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8100 | PyObject *resultobj = 0; |
8101 | GTestCase *result = 0 ; |
8102 | |
8103 | if (!PyArg_ParseTuple(args,(char *)":new_GTestCase")) SWIG_failgoto fail; |
8104 | { |
8105 | try { |
8106 | result = (GTestCase *)new GTestCase(); |
8107 | } |
8108 | catch (const GException::out_of_range& e) { |
8109 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8110 | } |
8111 | catch (const GExceptionHandler& e) { |
8112 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8113 | } |
8114 | catch (const std::exception& e) { |
8115 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8116 | } |
8117 | } |
8118 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestCase, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
8119 | return resultobj; |
8120 | fail: |
8121 | return NULL__null; |
8122 | } |
8123 | |
8124 | |
8125 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTestCase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8126 | PyObject *resultobj = 0; |
8127 | GTestCase::ErrorKind *arg1 = 0 ; |
8128 | std::string *arg2 = 0 ; |
8129 | int val1 ; |
8130 | int ecode1 ; |
8131 | GTestCase::ErrorKind temp1 ; |
8132 | int res2 = SWIG_OLDOBJ((0)) ; |
8133 | PyObject * obj0 = 0 ; |
8134 | PyObject * obj1 = 0 ; |
8135 | GTestCase *result = 0 ; |
8136 | |
8137 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GTestCase",&obj0,&obj1)) SWIG_failgoto fail; |
8138 | ecode1 = SWIG_AsVal_int (obj0, &val1); |
8139 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
8140 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GTestCase" "', argument " "1"" of type '" "GTestCase::ErrorKind const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GTestCase" "', argument " "1"" of type '" "GTestCase::ErrorKind const &""'"); goto fail; } while(0); |
8141 | } else { |
8142 | temp1 = static_cast< GTestCase::ErrorKind >(val1); |
8143 | arg1 = &temp1; |
8144 | } |
8145 | { |
8146 | std::string *ptr = (std::string *)0; |
8147 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8148 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8149 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GTestCase" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GTestCase" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8150 | } |
8151 | if (!ptr) { |
8152 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTestCase" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GTestCase" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8153 | } |
8154 | arg2 = ptr; |
8155 | } |
8156 | { |
8157 | try { |
8158 | result = (GTestCase *)new GTestCase((GTestCase::ErrorKind const &)*arg1,(std::string const &)*arg2); |
8159 | } |
8160 | catch (const GException::out_of_range& e) { |
8161 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8162 | } |
8163 | catch (const GExceptionHandler& e) { |
8164 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8165 | } |
8166 | catch (const std::exception& e) { |
8167 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8168 | } |
8169 | } |
8170 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestCase, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
8171 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8172 | return resultobj; |
8173 | fail: |
8174 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8175 | return NULL__null; |
8176 | } |
8177 | |
8178 | |
8179 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTestCase__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8180 | PyObject *resultobj = 0; |
8181 | GTestCase::ErrorKind *arg1 = 0 ; |
8182 | int val1 ; |
8183 | int ecode1 ; |
8184 | GTestCase::ErrorKind temp1 ; |
8185 | PyObject * obj0 = 0 ; |
8186 | GTestCase *result = 0 ; |
8187 | |
8188 | if (!PyArg_ParseTuple(args,(char *)"O:new_GTestCase",&obj0)) SWIG_failgoto fail; |
8189 | ecode1 = SWIG_AsVal_int (obj0, &val1); |
8190 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
8191 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GTestCase" "', argument " "1"" of type '" "GTestCase::ErrorKind const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GTestCase" "', argument " "1"" of type '" "GTestCase::ErrorKind const &""'"); goto fail; } while(0); |
8192 | } else { |
8193 | temp1 = static_cast< GTestCase::ErrorKind >(val1); |
8194 | arg1 = &temp1; |
8195 | } |
8196 | { |
8197 | try { |
8198 | result = (GTestCase *)new GTestCase((GTestCase::ErrorKind const &)*arg1); |
8199 | } |
8200 | catch (const GException::out_of_range& e) { |
8201 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8202 | } |
8203 | catch (const GExceptionHandler& e) { |
8204 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8205 | } |
8206 | catch (const std::exception& e) { |
8207 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8208 | } |
8209 | } |
8210 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestCase, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
8211 | return resultobj; |
8212 | fail: |
8213 | return NULL__null; |
8214 | } |
8215 | |
8216 | |
8217 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTestCase__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8218 | PyObject *resultobj = 0; |
8219 | GTestCase *arg1 = 0 ; |
8220 | void *argp1 = 0 ; |
8221 | int res1 = 0 ; |
8222 | PyObject * obj0 = 0 ; |
8223 | GTestCase *result = 0 ; |
8224 | |
8225 | if (!PyArg_ParseTuple(args,(char *)"O:new_GTestCase",&obj0)) SWIG_failgoto fail; |
8226 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GTestCase, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8227 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GTestCase" "', argument " "1"" of type '" "GTestCase const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GTestCase" "', argument " "1"" of type '" "GTestCase const &""'"); goto fail; } while (0); |
8229 | } |
8230 | if (!argp1) { |
8231 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTestCase" "', argument " "1"" of type '" "GTestCase const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GTestCase" "', argument " "1"" of type '" "GTestCase const &""'"); goto fail; } while(0); |
8232 | } |
8233 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8234 | { |
8235 | try { |
8236 | result = (GTestCase *)new GTestCase((GTestCase const &)*arg1); |
8237 | } |
8238 | catch (const GException::out_of_range& e) { |
8239 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8240 | } |
8241 | catch (const GExceptionHandler& e) { |
8242 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8243 | } |
8244 | catch (const std::exception& e) { |
8245 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8246 | } |
8247 | } |
8248 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestCase, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
8249 | return resultobj; |
8250 | fail: |
8251 | return NULL__null; |
8252 | } |
8253 | |
8254 | |
8255 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTestCase(PyObject *self, PyObject *args) { |
8256 | int argc; |
8257 | PyObject *argv[3]; |
8258 | int ii; |
8259 | |
8260 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8261 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8262 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8263 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8264 | } |
8265 | if (argc == 0) { |
8266 | return _wrap_new_GTestCase__SWIG_0(self, args); |
8267 | } |
8268 | if (argc == 1) { |
8269 | int _v; |
8270 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[5], 0, 0); |
8271 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8272 | if (_v) { |
8273 | return _wrap_new_GTestCase__SWIG_3(self, args); |
8274 | } |
8275 | } |
8276 | if (argc == 1) { |
8277 | int _v; |
8278 | { |
8279 | int res = SWIG_AsVal_int(argv[0], NULL__null); |
8280 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8281 | } |
8282 | if (_v) { |
8283 | return _wrap_new_GTestCase__SWIG_2(self, args); |
8284 | } |
8285 | } |
8286 | if (argc == 2) { |
8287 | int _v; |
8288 | { |
8289 | int res = SWIG_AsVal_int(argv[0], NULL__null); |
8290 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8291 | } |
8292 | if (_v) { |
8293 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8294 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8295 | if (_v) { |
8296 | return _wrap_new_GTestCase__SWIG_1(self, args); |
8297 | } |
8298 | } |
8299 | } |
8300 | |
8301 | fail: |
8302 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GTestCase'.\n" |
8303 | " Possible C/C++ prototypes are:\n" |
8304 | " GTestCase::GTestCase()\n" |
8305 | " GTestCase::GTestCase(GTestCase::ErrorKind const &,std::string const &)\n" |
8306 | " GTestCase::GTestCase(GTestCase::ErrorKind const &)\n" |
8307 | " GTestCase::GTestCase(GTestCase const &)\n"); |
8308 | return 0; |
8309 | } |
8310 | |
8311 | |
8312 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GTestCase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8313 | PyObject *resultobj = 0; |
8314 | GTestCase *arg1 = (GTestCase *) 0 ; |
8315 | void *argp1 = 0 ; |
8316 | int res1 = 0 ; |
8317 | PyObject * obj0 = 0 ; |
8318 | |
8319 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GTestCase",&obj0)) SWIG_failgoto fail; |
8320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0x1 | 0, 0); |
8321 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GTestCase" "', argument " "1"" of type '" "GTestCase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GTestCase" "', argument " "1"" of type '" "GTestCase *""'"); goto fail; } while(0); |
8323 | } |
8324 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8325 | { |
8326 | try { |
8327 | delete arg1; |
8328 | } |
8329 | catch (const GException::out_of_range& e) { |
8330 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8331 | } |
8332 | catch (const GExceptionHandler& e) { |
8333 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8334 | } |
8335 | catch (const std::exception& e) { |
8336 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8337 | } |
8338 | } |
8339 | resultobj = SWIG_Py_Void(); |
8340 | return resultobj; |
8341 | fail: |
8342 | return NULL__null; |
8343 | } |
8344 | |
8345 | |
8346 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8347 | PyObject *resultobj = 0; |
8348 | GTestCase *arg1 = (GTestCase *) 0 ; |
8349 | void *argp1 = 0 ; |
8350 | int res1 = 0 ; |
8351 | PyObject * obj0 = 0 ; |
8352 | |
8353 | if (!PyArg_ParseTuple(args,(char *)"O:GTestCase_clear",&obj0)) SWIG_failgoto fail; |
8354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8355 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_clear" "', argument " "1"" of type '" "GTestCase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_clear" "', argument " "1"" of type '" "GTestCase *""'"); goto fail; } while(0); |
8357 | } |
8358 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8359 | { |
8360 | try { |
8361 | (arg1)->clear(); |
8362 | } |
8363 | catch (const GException::out_of_range& e) { |
8364 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8365 | } |
8366 | catch (const GExceptionHandler& e) { |
8367 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8368 | } |
8369 | catch (const std::exception& e) { |
8370 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8371 | } |
8372 | } |
8373 | resultobj = SWIG_Py_Void(); |
8374 | return resultobj; |
8375 | fail: |
8376 | return NULL__null; |
8377 | } |
8378 | |
8379 | |
8380 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8381 | PyObject *resultobj = 0; |
8382 | GTestCase *arg1 = (GTestCase *) 0 ; |
8383 | void *argp1 = 0 ; |
8384 | int res1 = 0 ; |
8385 | PyObject * obj0 = 0 ; |
8386 | GTestCase *result = 0 ; |
8387 | |
8388 | if (!PyArg_ParseTuple(args,(char *)"O:GTestCase_clone",&obj0)) SWIG_failgoto fail; |
8389 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8390 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_clone" "', argument " "1"" of type '" "GTestCase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_clone" "', argument " "1"" of type '" "GTestCase const *""'"); goto fail; } while( 0); |
8392 | } |
8393 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8394 | { |
8395 | try { |
8396 | result = (GTestCase *)((GTestCase const *)arg1)->clone(); |
8397 | } |
8398 | catch (const GException::out_of_range& e) { |
8399 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8400 | } |
8401 | catch (const GExceptionHandler& e) { |
8402 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8403 | } |
8404 | catch (const std::exception& e) { |
8405 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8406 | } |
8407 | } |
8408 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
8409 | return resultobj; |
8410 | fail: |
8411 | return NULL__null; |
8412 | } |
8413 | |
8414 | |
8415 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_name__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8416 | PyObject *resultobj = 0; |
8417 | GTestCase *arg1 = (GTestCase *) 0 ; |
8418 | void *argp1 = 0 ; |
8419 | int res1 = 0 ; |
8420 | PyObject * obj0 = 0 ; |
8421 | std::string *result = 0 ; |
8422 | |
8423 | if (!PyArg_ParseTuple(args,(char *)"O:GTestCase_name",&obj0)) SWIG_failgoto fail; |
8424 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8425 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8426 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_name" "', argument " "1"" of type '" "GTestCase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_name" "', argument " "1"" of type '" "GTestCase const *""'"); goto fail; } while( 0); |
8427 | } |
8428 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8429 | { |
8430 | try { |
8431 | result = (std::string *) &((GTestCase const *)arg1)->name(); |
8432 | } |
8433 | catch (const GException::out_of_range& e) { |
8434 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8435 | } |
8436 | catch (const GExceptionHandler& e) { |
8437 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8438 | } |
8439 | catch (const std::exception& e) { |
8440 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8441 | } |
8442 | } |
8443 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
8444 | return resultobj; |
8445 | fail: |
8446 | return NULL__null; |
8447 | } |
8448 | |
8449 | |
8450 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_name__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8451 | PyObject *resultobj = 0; |
8452 | GTestCase *arg1 = (GTestCase *) 0 ; |
8453 | std::string *arg2 = 0 ; |
8454 | void *argp1 = 0 ; |
8455 | int res1 = 0 ; |
8456 | int res2 = SWIG_OLDOBJ((0)) ; |
8457 | PyObject * obj0 = 0 ; |
8458 | PyObject * obj1 = 0 ; |
8459 | |
8460 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestCase_name",&obj0,&obj1)) SWIG_failgoto fail; |
8461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8462 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_name" "', argument " "1"" of type '" "GTestCase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_name" "', argument " "1"" of type '" "GTestCase *""'"); goto fail; } while(0); |
8464 | } |
8465 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8466 | { |
8467 | std::string *ptr = (std::string *)0; |
8468 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8469 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8470 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestCase_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestCase_name" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8471 | } |
8472 | if (!ptr) { |
8473 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestCase_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestCase_name" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8474 | } |
8475 | arg2 = ptr; |
8476 | } |
8477 | { |
8478 | try { |
8479 | (arg1)->name((std::string const &)*arg2); |
8480 | } |
8481 | catch (const GException::out_of_range& e) { |
8482 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8483 | } |
8484 | catch (const GExceptionHandler& e) { |
8485 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8486 | } |
8487 | catch (const std::exception& e) { |
8488 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8489 | } |
8490 | } |
8491 | resultobj = SWIG_Py_Void(); |
8492 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8493 | return resultobj; |
8494 | fail: |
8495 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8496 | return NULL__null; |
8497 | } |
8498 | |
8499 | |
8500 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_name(PyObject *self, PyObject *args) { |
8501 | int argc; |
8502 | PyObject *argv[3]; |
8503 | int ii; |
8504 | |
8505 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8506 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8507 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8508 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8509 | } |
8510 | if (argc == 1) { |
8511 | int _v; |
8512 | void *vptr = 0; |
8513 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8514 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8515 | if (_v) { |
8516 | return _wrap_GTestCase_name__SWIG_0(self, args); |
8517 | } |
8518 | } |
8519 | if (argc == 2) { |
8520 | int _v; |
8521 | void *vptr = 0; |
8522 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8523 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8524 | if (_v) { |
8525 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8526 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8527 | if (_v) { |
8528 | return _wrap_GTestCase_name__SWIG_1(self, args); |
8529 | } |
8530 | } |
8531 | } |
8532 | |
8533 | fail: |
8534 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTestCase_name'.\n" |
8535 | " Possible C/C++ prototypes are:\n" |
8536 | " GTestCase::name() const\n" |
8537 | " GTestCase::name(std::string const &)\n"); |
8538 | return 0; |
8539 | } |
8540 | |
8541 | |
8542 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_message__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8543 | PyObject *resultobj = 0; |
8544 | GTestCase *arg1 = (GTestCase *) 0 ; |
8545 | void *argp1 = 0 ; |
8546 | int res1 = 0 ; |
8547 | PyObject * obj0 = 0 ; |
8548 | std::string *result = 0 ; |
8549 | |
8550 | if (!PyArg_ParseTuple(args,(char *)"O:GTestCase_message",&obj0)) SWIG_failgoto fail; |
8551 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8552 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8553 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_message" "', argument " "1"" of type '" "GTestCase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_message" "', argument " "1"" of type '" "GTestCase const *""'"); goto fail; } while( 0); |
8554 | } |
8555 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8556 | { |
8557 | try { |
8558 | result = (std::string *) &((GTestCase const *)arg1)->message(); |
8559 | } |
8560 | catch (const GException::out_of_range& e) { |
8561 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8562 | } |
8563 | catch (const GExceptionHandler& e) { |
8564 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8565 | } |
8566 | catch (const std::exception& e) { |
8567 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8568 | } |
8569 | } |
8570 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
8571 | return resultobj; |
8572 | fail: |
8573 | return NULL__null; |
8574 | } |
8575 | |
8576 | |
8577 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_message__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8578 | PyObject *resultobj = 0; |
8579 | GTestCase *arg1 = (GTestCase *) 0 ; |
8580 | std::string *arg2 = 0 ; |
8581 | void *argp1 = 0 ; |
8582 | int res1 = 0 ; |
8583 | int res2 = SWIG_OLDOBJ((0)) ; |
8584 | PyObject * obj0 = 0 ; |
8585 | PyObject * obj1 = 0 ; |
8586 | |
8587 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestCase_message",&obj0,&obj1)) SWIG_failgoto fail; |
8588 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8589 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_message" "', argument " "1"" of type '" "GTestCase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_message" "', argument " "1"" of type '" "GTestCase *""'"); goto fail; } while(0); |
8591 | } |
8592 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8593 | { |
8594 | std::string *ptr = (std::string *)0; |
8595 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8596 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8597 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestCase_message" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestCase_message" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8598 | } |
8599 | if (!ptr) { |
8600 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestCase_message" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestCase_message" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8601 | } |
8602 | arg2 = ptr; |
8603 | } |
8604 | { |
8605 | try { |
8606 | (arg1)->message((std::string const &)*arg2); |
8607 | } |
8608 | catch (const GException::out_of_range& e) { |
8609 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8610 | } |
8611 | catch (const GExceptionHandler& e) { |
8612 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8613 | } |
8614 | catch (const std::exception& e) { |
8615 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8616 | } |
8617 | } |
8618 | resultobj = SWIG_Py_Void(); |
8619 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8620 | return resultobj; |
8621 | fail: |
8622 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8623 | return NULL__null; |
8624 | } |
8625 | |
8626 | |
8627 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_message(PyObject *self, PyObject *args) { |
8628 | int argc; |
8629 | PyObject *argv[3]; |
8630 | int ii; |
8631 | |
8632 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8633 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8634 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8635 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8636 | } |
8637 | if (argc == 1) { |
8638 | int _v; |
8639 | void *vptr = 0; |
8640 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8641 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8642 | if (_v) { |
8643 | return _wrap_GTestCase_message__SWIG_0(self, args); |
8644 | } |
8645 | } |
8646 | if (argc == 2) { |
8647 | int _v; |
8648 | void *vptr = 0; |
8649 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8650 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8651 | if (_v) { |
8652 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8653 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8654 | if (_v) { |
8655 | return _wrap_GTestCase_message__SWIG_1(self, args); |
8656 | } |
8657 | } |
8658 | } |
8659 | |
8660 | fail: |
8661 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTestCase_message'.\n" |
8662 | " Possible C/C++ prototypes are:\n" |
8663 | " GTestCase::message() const\n" |
8664 | " GTestCase::message(std::string const &)\n"); |
8665 | return 0; |
8666 | } |
8667 | |
8668 | |
8669 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_type__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8670 | PyObject *resultobj = 0; |
8671 | GTestCase *arg1 = (GTestCase *) 0 ; |
8672 | void *argp1 = 0 ; |
8673 | int res1 = 0 ; |
8674 | PyObject * obj0 = 0 ; |
8675 | std::string *result = 0 ; |
8676 | |
8677 | if (!PyArg_ParseTuple(args,(char *)"O:GTestCase_type",&obj0)) SWIG_failgoto fail; |
8678 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8679 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_type" "', argument " "1"" of type '" "GTestCase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_type" "', argument " "1"" of type '" "GTestCase const *""'"); goto fail; } while( 0); |
8681 | } |
8682 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8683 | { |
8684 | try { |
8685 | result = (std::string *) &((GTestCase const *)arg1)->type(); |
8686 | } |
8687 | catch (const GException::out_of_range& e) { |
8688 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8689 | } |
8690 | catch (const GExceptionHandler& e) { |
8691 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8692 | } |
8693 | catch (const std::exception& e) { |
8694 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8695 | } |
8696 | } |
8697 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
8698 | return resultobj; |
8699 | fail: |
8700 | return NULL__null; |
8701 | } |
8702 | |
8703 | |
8704 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_type__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8705 | PyObject *resultobj = 0; |
8706 | GTestCase *arg1 = (GTestCase *) 0 ; |
8707 | std::string *arg2 = 0 ; |
8708 | void *argp1 = 0 ; |
8709 | int res1 = 0 ; |
8710 | int res2 = SWIG_OLDOBJ((0)) ; |
8711 | PyObject * obj0 = 0 ; |
8712 | PyObject * obj1 = 0 ; |
8713 | |
8714 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestCase_type",&obj0,&obj1)) SWIG_failgoto fail; |
8715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8716 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_type" "', argument " "1"" of type '" "GTestCase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_type" "', argument " "1"" of type '" "GTestCase *""'"); goto fail; } while(0); |
8718 | } |
8719 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8720 | { |
8721 | std::string *ptr = (std::string *)0; |
8722 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8723 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8724 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTestCase_type" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GTestCase_type" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8725 | } |
8726 | if (!ptr) { |
8727 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTestCase_type" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GTestCase_type" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8728 | } |
8729 | arg2 = ptr; |
8730 | } |
8731 | { |
8732 | try { |
8733 | (arg1)->type((std::string const &)*arg2); |
8734 | } |
8735 | catch (const GException::out_of_range& e) { |
8736 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8737 | } |
8738 | catch (const GExceptionHandler& e) { |
8739 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8740 | } |
8741 | catch (const std::exception& e) { |
8742 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8743 | } |
8744 | } |
8745 | resultobj = SWIG_Py_Void(); |
8746 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8747 | return resultobj; |
8748 | fail: |
8749 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8750 | return NULL__null; |
8751 | } |
8752 | |
8753 | |
8754 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_type(PyObject *self, PyObject *args) { |
8755 | int argc; |
8756 | PyObject *argv[3]; |
8757 | int ii; |
8758 | |
8759 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8760 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8761 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8762 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8763 | } |
8764 | if (argc == 1) { |
8765 | int _v; |
8766 | void *vptr = 0; |
8767 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8768 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8769 | if (_v) { |
8770 | return _wrap_GTestCase_type__SWIG_0(self, args); |
8771 | } |
8772 | } |
8773 | if (argc == 2) { |
8774 | int _v; |
8775 | void *vptr = 0; |
8776 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8777 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8778 | if (_v) { |
8779 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8780 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8781 | if (_v) { |
8782 | return _wrap_GTestCase_type__SWIG_1(self, args); |
8783 | } |
8784 | } |
8785 | } |
8786 | |
8787 | fail: |
8788 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTestCase_type'.\n" |
8789 | " Possible C/C++ prototypes are:\n" |
8790 | " GTestCase::type() const\n" |
8791 | " GTestCase::type(std::string const &)\n"); |
8792 | return 0; |
8793 | } |
8794 | |
8795 | |
8796 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_kind__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8797 | PyObject *resultobj = 0; |
8798 | GTestCase *arg1 = (GTestCase *) 0 ; |
8799 | void *argp1 = 0 ; |
8800 | int res1 = 0 ; |
8801 | PyObject * obj0 = 0 ; |
8802 | GTestCase::ErrorKind *result = 0 ; |
8803 | |
8804 | if (!PyArg_ParseTuple(args,(char *)"O:GTestCase_kind",&obj0)) SWIG_failgoto fail; |
8805 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8806 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_kind" "', argument " "1"" of type '" "GTestCase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_kind" "', argument " "1"" of type '" "GTestCase const *""'"); goto fail; } while( 0); |
8808 | } |
8809 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8810 | { |
8811 | try { |
8812 | result = (GTestCase::ErrorKind *) &((GTestCase const *)arg1)->kind(); |
8813 | } |
8814 | catch (const GException::out_of_range& e) { |
8815 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8816 | } |
8817 | catch (const GExceptionHandler& e) { |
8818 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8819 | } |
8820 | catch (const std::exception& e) { |
8821 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8822 | } |
8823 | } |
8824 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
8825 | return resultobj; |
8826 | fail: |
8827 | return NULL__null; |
8828 | } |
8829 | |
8830 | |
8831 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_kind__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8832 | PyObject *resultobj = 0; |
8833 | GTestCase *arg1 = (GTestCase *) 0 ; |
8834 | GTestCase::ErrorKind *arg2 = 0 ; |
8835 | void *argp1 = 0 ; |
8836 | int res1 = 0 ; |
8837 | int val2 ; |
8838 | int ecode2 ; |
8839 | GTestCase::ErrorKind temp2 ; |
8840 | PyObject * obj0 = 0 ; |
8841 | PyObject * obj1 = 0 ; |
8842 | |
8843 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestCase_kind",&obj0,&obj1)) SWIG_failgoto fail; |
8844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8845 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_kind" "', argument " "1"" of type '" "GTestCase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_kind" "', argument " "1"" of type '" "GTestCase *""'"); goto fail; } while(0); |
8847 | } |
8848 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8849 | ecode2 = SWIG_AsVal_int (obj1, &val2); |
8850 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8851 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestCase_kind" "', argument " "2"" of type '" "GTestCase::ErrorKind const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestCase_kind" "', argument " "2"" of type '" "GTestCase::ErrorKind const &""'"); goto fail; } while(0); |
8852 | } else { |
8853 | temp2 = static_cast< GTestCase::ErrorKind >(val2); |
8854 | arg2 = &temp2; |
8855 | } |
8856 | { |
8857 | try { |
8858 | (arg1)->kind((GTestCase::ErrorKind const &)*arg2); |
8859 | } |
8860 | catch (const GException::out_of_range& e) { |
8861 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8862 | } |
8863 | catch (const GExceptionHandler& e) { |
8864 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8865 | } |
8866 | catch (const std::exception& e) { |
8867 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8868 | } |
8869 | } |
8870 | resultobj = SWIG_Py_Void(); |
8871 | return resultobj; |
8872 | fail: |
8873 | return NULL__null; |
8874 | } |
8875 | |
8876 | |
8877 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_kind(PyObject *self, PyObject *args) { |
8878 | int argc; |
8879 | PyObject *argv[3]; |
8880 | int ii; |
8881 | |
8882 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8883 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8884 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8885 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8886 | } |
8887 | if (argc == 1) { |
8888 | int _v; |
8889 | void *vptr = 0; |
8890 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8891 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8892 | if (_v) { |
8893 | return _wrap_GTestCase_kind__SWIG_0(self, args); |
8894 | } |
8895 | } |
8896 | if (argc == 2) { |
8897 | int _v; |
8898 | void *vptr = 0; |
8899 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8900 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8901 | if (_v) { |
8902 | { |
8903 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
8904 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8905 | } |
8906 | if (_v) { |
8907 | return _wrap_GTestCase_kind__SWIG_1(self, args); |
8908 | } |
8909 | } |
8910 | } |
8911 | |
8912 | fail: |
8913 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTestCase_kind'.\n" |
8914 | " Possible C/C++ prototypes are:\n" |
8915 | " GTestCase::kind() const\n" |
8916 | " GTestCase::kind(GTestCase::ErrorKind const &)\n"); |
8917 | return 0; |
8918 | } |
8919 | |
8920 | |
8921 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_passed__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8922 | PyObject *resultobj = 0; |
8923 | GTestCase *arg1 = (GTestCase *) 0 ; |
8924 | void *argp1 = 0 ; |
8925 | int res1 = 0 ; |
8926 | PyObject * obj0 = 0 ; |
8927 | bool *result = 0 ; |
8928 | |
8929 | if (!PyArg_ParseTuple(args,(char *)"O:GTestCase_passed",&obj0)) SWIG_failgoto fail; |
8930 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8931 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8932 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_passed" "', argument " "1"" of type '" "GTestCase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_passed" "', argument " "1"" of type '" "GTestCase const *""'"); goto fail; } while( 0); |
8933 | } |
8934 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8935 | { |
8936 | try { |
8937 | result = (bool *) &((GTestCase const *)arg1)->passed(); |
8938 | } |
8939 | catch (const GException::out_of_range& e) { |
8940 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8941 | } |
8942 | catch (const GExceptionHandler& e) { |
8943 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8944 | } |
8945 | catch (const std::exception& e) { |
8946 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8947 | } |
8948 | } |
8949 | resultobj = SWIG_From_bool(static_cast< bool >(*result)); |
8950 | return resultobj; |
8951 | fail: |
8952 | return NULL__null; |
8953 | } |
8954 | |
8955 | |
8956 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_passed__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8957 | PyObject *resultobj = 0; |
8958 | GTestCase *arg1 = (GTestCase *) 0 ; |
8959 | bool *arg2 = 0 ; |
8960 | void *argp1 = 0 ; |
8961 | int res1 = 0 ; |
8962 | bool temp2 ; |
8963 | bool val2 ; |
8964 | int ecode2 = 0 ; |
8965 | PyObject * obj0 = 0 ; |
8966 | PyObject * obj1 = 0 ; |
8967 | |
8968 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestCase_passed",&obj0,&obj1)) SWIG_failgoto fail; |
8969 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8970 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_passed" "', argument " "1"" of type '" "GTestCase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_passed" "', argument " "1"" of type '" "GTestCase *""'"); goto fail; } while(0); |
8972 | } |
8973 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
8974 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
8975 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8976 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestCase_passed" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestCase_passed" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0); |
8977 | } |
8978 | temp2 = static_cast< bool >(val2); |
8979 | arg2 = &temp2; |
8980 | { |
8981 | try { |
8982 | (arg1)->passed((bool const &)*arg2); |
8983 | } |
8984 | catch (const GException::out_of_range& e) { |
8985 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8986 | } |
8987 | catch (const GExceptionHandler& e) { |
8988 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8989 | } |
8990 | catch (const std::exception& e) { |
8991 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8992 | } |
8993 | } |
8994 | resultobj = SWIG_Py_Void(); |
8995 | return resultobj; |
8996 | fail: |
8997 | return NULL__null; |
8998 | } |
8999 | |
9000 | |
9001 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_passed(PyObject *self, PyObject *args) { |
9002 | int argc; |
9003 | PyObject *argv[3]; |
9004 | int ii; |
9005 | |
9006 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9007 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9008 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
9009 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9010 | } |
9011 | if (argc == 1) { |
9012 | int _v; |
9013 | void *vptr = 0; |
9014 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
9015 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9016 | if (_v) { |
9017 | return _wrap_GTestCase_passed__SWIG_0(self, args); |
9018 | } |
9019 | } |
9020 | if (argc == 2) { |
9021 | int _v; |
9022 | void *vptr = 0; |
9023 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
9024 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9025 | if (_v) { |
9026 | { |
9027 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
9028 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9029 | } |
9030 | if (_v) { |
9031 | return _wrap_GTestCase_passed__SWIG_1(self, args); |
9032 | } |
9033 | } |
9034 | } |
9035 | |
9036 | fail: |
9037 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTestCase_passed'.\n" |
9038 | " Possible C/C++ prototypes are:\n" |
9039 | " GTestCase::passed() const\n" |
9040 | " GTestCase::passed(bool const &)\n"); |
9041 | return 0; |
9042 | } |
9043 | |
9044 | |
9045 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_duration__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9046 | PyObject *resultobj = 0; |
9047 | GTestCase *arg1 = (GTestCase *) 0 ; |
9048 | void *argp1 = 0 ; |
9049 | int res1 = 0 ; |
9050 | PyObject * obj0 = 0 ; |
9051 | double *result = 0 ; |
9052 | |
9053 | if (!PyArg_ParseTuple(args,(char *)"O:GTestCase_duration",&obj0)) SWIG_failgoto fail; |
9054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9055 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_duration" "', argument " "1"" of type '" "GTestCase const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_duration" "', argument " "1"" of type '" "GTestCase const *""'"); goto fail; } while( 0); |
9057 | } |
9058 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
9059 | { |
9060 | try { |
9061 | result = (double *) &((GTestCase const *)arg1)->duration(); |
9062 | } |
9063 | catch (const GException::out_of_range& e) { |
9064 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9065 | } |
9066 | catch (const GExceptionHandler& e) { |
9067 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9068 | } |
9069 | catch (const std::exception& e) { |
9070 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9071 | } |
9072 | } |
9073 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
9074 | return resultobj; |
9075 | fail: |
9076 | return NULL__null; |
9077 | } |
9078 | |
9079 | |
9080 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_duration__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9081 | PyObject *resultobj = 0; |
9082 | GTestCase *arg1 = (GTestCase *) 0 ; |
9083 | double *arg2 = 0 ; |
9084 | void *argp1 = 0 ; |
9085 | int res1 = 0 ; |
9086 | double temp2 ; |
9087 | double val2 ; |
9088 | int ecode2 = 0 ; |
9089 | PyObject * obj0 = 0 ; |
9090 | PyObject * obj1 = 0 ; |
9091 | |
9092 | if (!PyArg_ParseTuple(args,(char *)"OO:GTestCase_duration",&obj0,&obj1)) SWIG_failgoto fail; |
9093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9094 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_duration" "', argument " "1"" of type '" "GTestCase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_duration" "', argument " "1"" of type '" "GTestCase *""'"); goto fail; } while(0); |
9096 | } |
9097 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
9098 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
9099 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9100 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTestCase_duration" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GTestCase_duration" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
9101 | } |
9102 | temp2 = static_cast< double >(val2); |
9103 | arg2 = &temp2; |
9104 | { |
9105 | try { |
9106 | (arg1)->duration((double const &)*arg2); |
9107 | } |
9108 | catch (const GException::out_of_range& e) { |
9109 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9110 | } |
9111 | catch (const GExceptionHandler& e) { |
9112 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9113 | } |
9114 | catch (const std::exception& e) { |
9115 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9116 | } |
9117 | } |
9118 | resultobj = SWIG_Py_Void(); |
9119 | return resultobj; |
9120 | fail: |
9121 | return NULL__null; |
9122 | } |
9123 | |
9124 | |
9125 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_duration(PyObject *self, PyObject *args) { |
9126 | int argc; |
9127 | PyObject *argv[3]; |
9128 | int ii; |
9129 | |
9130 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9131 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9132 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
9133 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9134 | } |
9135 | if (argc == 1) { |
9136 | int _v; |
9137 | void *vptr = 0; |
9138 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
9139 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9140 | if (_v) { |
9141 | return _wrap_GTestCase_duration__SWIG_0(self, args); |
9142 | } |
9143 | } |
9144 | if (argc == 2) { |
9145 | int _v; |
9146 | void *vptr = 0; |
9147 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTestCase, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
9148 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9149 | if (_v) { |
9150 | { |
9151 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
9152 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9153 | } |
9154 | if (_v) { |
9155 | return _wrap_GTestCase_duration__SWIG_1(self, args); |
9156 | } |
9157 | } |
9158 | } |
9159 | |
9160 | fail: |
9161 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTestCase_duration'.\n" |
9162 | " Possible C/C++ prototypes are:\n" |
9163 | " GTestCase::duration() const\n" |
9164 | " GTestCase::duration(double const &)\n"); |
9165 | return 0; |
9166 | } |
9167 | |
9168 | |
9169 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTestCase_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9170 | PyObject *resultobj = 0; |
9171 | GTestCase *arg1 = (GTestCase *) 0 ; |
9172 | void *argp1 = 0 ; |
9173 | int res1 = 0 ; |
9174 | PyObject * obj0 = 0 ; |
9175 | GTestCase result; |
9176 | |
9177 | if (!PyArg_ParseTuple(args,(char *)"O:GTestCase_copy",&obj0)) SWIG_failgoto fail; |
9178 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTestCase, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9179 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTestCase_copy" "', argument " "1"" of type '" "GTestCase *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GTestCase_copy" "', argument " "1"" of type '" "GTestCase *""'"); goto fail; } while(0); |
9181 | } |
9182 | arg1 = reinterpret_cast< GTestCase * >(argp1); |
9183 | { |
9184 | try { |
9185 | result = GTestCase_copy(arg1); |
9186 | } |
9187 | catch (const GException::out_of_range& e) { |
9188 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9189 | } |
9190 | catch (const GExceptionHandler& e) { |
9191 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9192 | } |
9193 | catch (const std::exception& e) { |
9194 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9195 | } |
9196 | } |
9197 | resultobj = SWIG_NewPointerObj((new GTestCase(static_cast< const GTestCase& >(result))), SWIGTYPE_p_GTestCase, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTestCase(static_cast< const GTestCase& >(result))), swig_types[5], 0x1 | 0); |
9198 | return resultobj; |
9199 | fail: |
9200 | return NULL__null; |
9201 | } |
9202 | |
9203 | |
9204 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GTestCase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9205 | PyObject *obj; |
9206 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
9207 | SWIG_TypeNewClientData(SWIGTYPE_p_GTestCaseswig_types[5], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
9208 | return SWIG_Py_Void(); |
9209 | } |
9210 | |
9211 | static PyMethodDef SwigMethods[] = { |
9212 | { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null}, |
9213 | { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"}, |
9214 | { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"}, |
9215 | { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n" |
9216 | "incr(size_t n=1) -> SwigPyIterator\n" |
9217 | "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n" |
9218 | ""}, |
9219 | { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n" |
9220 | "decr(size_t n=1) -> SwigPyIterator\n" |
9221 | "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n" |
9222 | ""}, |
9223 | { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"}, |
9224 | { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
9225 | { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"}, |
9226 | { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"}, |
9227 | { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"}, |
9228 | { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"}, |
9229 | { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
9230 | { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
9231 | { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
9232 | { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
9233 | { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
9234 | { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
9235 | { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n" |
9236 | "__sub__(ptrdiff_t n) -> SwigPyIterator\n" |
9237 | "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n" |
9238 | ""}, |
9239 | { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null}, |
9240 | { (char *)"new_GTestSuites", _wrap_new_GTestSuites, METH_VARARGS0x0001, (char *)"\n" |
9241 | "GTestSuites()\n" |
9242 | "GTestSuites(GTestSuites suites)\n" |
9243 | "new_GTestSuites(std::string const & name) -> GTestSuites\n" |
9244 | ""}, |
9245 | { (char *)"delete_GTestSuites", _wrap_delete_GTestSuites, METH_VARARGS0x0001, (char *)"delete_GTestSuites(GTestSuites self)"}, |
9246 | { (char *)"GTestSuites_clear", _wrap_GTestSuites_clear, METH_VARARGS0x0001, (char *)"GTestSuites_clear(GTestSuites self)"}, |
9247 | { (char *)"GTestSuites_clone", _wrap_GTestSuites_clone, METH_VARARGS0x0001, (char *)"GTestSuites_clone(GTestSuites self) -> GTestSuites"}, |
9248 | { (char *)"GTestSuites_at", _wrap_GTestSuites_at, METH_VARARGS0x0001, (char *)"GTestSuites_at(GTestSuites self, int const & index) -> GTestSuite"}, |
9249 | { (char *)"GTestSuites_size", _wrap_GTestSuites_size, METH_VARARGS0x0001, (char *)"GTestSuites_size(GTestSuites self) -> int"}, |
9250 | { (char *)"GTestSuites_isempty", _wrap_GTestSuites_isempty, METH_VARARGS0x0001, (char *)"GTestSuites_isempty(GTestSuites self) -> bool"}, |
9251 | { (char *)"GTestSuites_set", _wrap_GTestSuites_set, METH_VARARGS0x0001, (char *)"GTestSuites_set(GTestSuites self, int const & index, GTestSuite suite) -> GTestSuite"}, |
9252 | { (char *)"GTestSuites_append", _wrap_GTestSuites_append, METH_VARARGS0x0001, (char *)"GTestSuites_append(GTestSuites self, GTestSuite suite) -> GTestSuite"}, |
9253 | { (char *)"GTestSuites_insert", _wrap_GTestSuites_insert, METH_VARARGS0x0001, (char *)"GTestSuites_insert(GTestSuites self, int const & index, GTestSuite suite) -> GTestSuite"}, |
9254 | { (char *)"GTestSuites_remove", _wrap_GTestSuites_remove, METH_VARARGS0x0001, (char *)"GTestSuites_remove(GTestSuites self, int const & index)"}, |
9255 | { (char *)"GTestSuites_reserve", _wrap_GTestSuites_reserve, METH_VARARGS0x0001, (char *)"GTestSuites_reserve(GTestSuites self, int const & num)"}, |
9256 | { (char *)"GTestSuites_extend", _wrap_GTestSuites_extend, METH_VARARGS0x0001, (char *)"GTestSuites_extend(GTestSuites self, GTestSuites suites)"}, |
9257 | { (char *)"GTestSuites_name", _wrap_GTestSuites_name, METH_VARARGS0x0001, (char *)"\n" |
9258 | "name() -> std::string const\n" |
9259 | "GTestSuites_name(GTestSuites self, std::string const & name)\n" |
9260 | ""}, |
9261 | { (char *)"GTestSuites_cout", _wrap_GTestSuites_cout, METH_VARARGS0x0001, (char *)"GTestSuites_cout(GTestSuites self, bool const & flag)"}, |
9262 | { (char *)"GTestSuites_errors", _wrap_GTestSuites_errors, METH_VARARGS0x0001, (char *)"GTestSuites_errors(GTestSuites self) -> int"}, |
9263 | { (char *)"GTestSuites_failures", _wrap_GTestSuites_failures, METH_VARARGS0x0001, (char *)"GTestSuites_failures(GTestSuites self) -> int"}, |
9264 | { (char *)"GTestSuites_tests", _wrap_GTestSuites_tests, METH_VARARGS0x0001, (char *)"GTestSuites_tests(GTestSuites self) -> int"}, |
9265 | { (char *)"GTestSuites_timestamp", _wrap_GTestSuites_timestamp, METH_VARARGS0x0001, (char *)"GTestSuites_timestamp(GTestSuites self) -> time_t const &"}, |
9266 | { (char *)"GTestSuites_run", _wrap_GTestSuites_run, METH_VARARGS0x0001, (char *)"GTestSuites_run(GTestSuites self) -> bool"}, |
9267 | { (char *)"GTestSuites_save", _wrap_GTestSuites_save, METH_VARARGS0x0001, (char *)"GTestSuites_save(GTestSuites self, std::string const & filename)"}, |
9268 | { (char *)"GTestSuites___getitem__", _wrap_GTestSuites___getitem__, METH_VARARGS0x0001, (char *)"GTestSuites___getitem__(GTestSuites self, int const & index) -> GTestSuite"}, |
9269 | { (char *)"GTestSuites___setitem__", _wrap_GTestSuites___setitem__, METH_VARARGS0x0001, (char *)"GTestSuites___setitem__(GTestSuites self, int const & index, GTestSuite suite)"}, |
9270 | { (char *)"GTestSuites_copy", _wrap_GTestSuites_copy, METH_VARARGS0x0001, (char *)"GTestSuites_copy(GTestSuites self) -> GTestSuites"}, |
9271 | { (char *)"GTestSuites_swigregister", GTestSuites_swigregister, METH_VARARGS0x0001, NULL__null}, |
9272 | { (char *)"delete_GTestSuite", _wrap_delete_GTestSuite, METH_VARARGS0x0001, (char *)"delete_GTestSuite(GTestSuite self)"}, |
9273 | { (char *)"GTestSuite_clone", _wrap_GTestSuite_clone, METH_VARARGS0x0001, (char *)"GTestSuite_clone(GTestSuite self) -> GTestSuite"}, |
9274 | { (char *)"GTestSuite_set", _wrap_GTestSuite_set, METH_VARARGS0x0001, (char *)"GTestSuite_set(GTestSuite self)"}, |
9275 | { (char *)"GTestSuite_clear", _wrap_GTestSuite_clear, METH_VARARGS0x0001, (char *)"GTestSuite_clear(GTestSuite self)"}, |
9276 | { (char *)"GTestSuite_size", _wrap_GTestSuite_size, METH_VARARGS0x0001, (char *)"GTestSuite_size(GTestSuite self) -> int"}, |
9277 | { (char *)"GTestSuite_run", _wrap_GTestSuite_run, METH_VARARGS0x0001, (char *)"GTestSuite_run(GTestSuite self) -> bool"}, |
9278 | { (char *)"GTestSuite_name", _wrap_GTestSuite_name, METH_VARARGS0x0001, (char *)"\n" |
9279 | "name() -> std::string const\n" |
9280 | "GTestSuite_name(GTestSuite self, std::string const & name)\n" |
9281 | ""}, |
9282 | { (char *)"GTestSuite_cout", _wrap_GTestSuite_cout, METH_VARARGS0x0001, (char *)"GTestSuite_cout(GTestSuite self, bool const & flag)"}, |
9283 | { (char *)"GTestSuite_test_assert", _wrap_GTestSuite_test_assert, METH_VARARGS0x0001, (char *)"\n" |
9284 | "test_assert(bool const & result, std::string const & name, std::string const & message=\"\")\n" |
9285 | "GTestSuite_test_assert(GTestSuite self, bool const & result, std::string const & name)\n" |
9286 | ""}, |
9287 | { (char *)"GTestSuite_test_value", _wrap_GTestSuite_test_value, METH_VARARGS0x0001, (char *)"\n" |
9288 | "test_value(int const & value, int const & expected, std::string const & name=\"\", std::string const & message=\"\")\n" |
9289 | "test_value(int const & value, int const & expected, std::string const & name=\"\")\n" |
9290 | "test_value(int const & value, int const & expected)\n" |
9291 | "test_value(double const & value, double const & expected, double const & eps=1.0e-10, std::string const & name=\"\", \n" |
9292 | " std::string const & message=\"\")\n" |
9293 | "test_value(double const & value, double const & expected, double const & eps=1.0e-10, std::string const & name=\"\")\n" |
9294 | "test_value(double const & value, double const & expected, double const & eps=1.0e-10)\n" |
9295 | "GTestSuite_test_value(GTestSuite self, double const & value, double const & expected)\n" |
9296 | ""}, |
9297 | { (char *)"GTestSuite_test_try", _wrap_GTestSuite_test_try, METH_VARARGS0x0001, (char *)"GTestSuite_test_try(GTestSuite self, std::string const & name)"}, |
9298 | { (char *)"GTestSuite_test_try_success", _wrap_GTestSuite_test_try_success, METH_VARARGS0x0001, (char *)"GTestSuite_test_try_success(GTestSuite self)"}, |
9299 | { (char *)"GTestSuite_test_try_failure", _wrap_GTestSuite_test_try_failure, METH_VARARGS0x0001, (char *)"\n" |
9300 | "test_try_failure(std::string const & message=\"\", std::string const & type=\"\")\n" |
9301 | "test_try_failure(std::string const & message=\"\")\n" |
9302 | "test_try_failure()\n" |
9303 | "GTestSuite_test_try_failure(GTestSuite self, std::exception const & e)\n" |
9304 | ""}, |
9305 | { (char *)"GTestSuite_exception_failure", _wrap_GTestSuite_exception_failure, METH_VARARGS0x0001, (char *)"GTestSuite_exception_failure(GTestSuite self, std::string const & message) -> GException::test_failure &"}, |
9306 | { (char *)"GTestSuite_exception_error", _wrap_GTestSuite_exception_error, METH_VARARGS0x0001, (char *)"GTestSuite_exception_error(GTestSuite self, std::string const & message) -> GException::test_error &"}, |
9307 | { (char *)"GTestSuite_errors", _wrap_GTestSuite_errors, METH_VARARGS0x0001, (char *)"GTestSuite_errors(GTestSuite self) -> int const &"}, |
9308 | { (char *)"GTestSuite_failures", _wrap_GTestSuite_failures, METH_VARARGS0x0001, (char *)"GTestSuite_failures(GTestSuite self) -> int const &"}, |
9309 | { (char *)"GTestSuite_success", _wrap_GTestSuite_success, METH_VARARGS0x0001, (char *)"GTestSuite_success(GTestSuite self) -> int"}, |
9310 | { (char *)"GTestSuite_timestamp", _wrap_GTestSuite_timestamp, METH_VARARGS0x0001, (char *)"GTestSuite_timestamp(GTestSuite self) -> time_t const &"}, |
9311 | { (char *)"GTestSuite_duration", _wrap_GTestSuite_duration, METH_VARARGS0x0001, (char *)"GTestSuite_duration(GTestSuite self) -> double"}, |
9312 | { (char *)"GTestSuite___getitem__", _wrap_GTestSuite___getitem__, METH_VARARGS0x0001, (char *)"GTestSuite___getitem__(GTestSuite self, int const & index) -> GTestCase"}, |
9313 | { (char *)"GTestSuite___setitem__", _wrap_GTestSuite___setitem__, METH_VARARGS0x0001, (char *)"GTestSuite___setitem__(GTestSuite self, int const & index, GTestCase val)"}, |
9314 | { (char *)"GTestSuite_swigregister", GTestSuite_swigregister, METH_VARARGS0x0001, NULL__null}, |
9315 | { (char *)"new_GPythonTestSuite", _wrap_new_GPythonTestSuite, METH_VARARGS0x0001, (char *)"new_GPythonTestSuite() -> GPythonTestSuite"}, |
9316 | { (char *)"delete_GPythonTestSuite", _wrap_delete_GPythonTestSuite, METH_VARARGS0x0001, (char *)"delete_GPythonTestSuite(GPythonTestSuite self)"}, |
9317 | { (char *)"GPythonTestSuite_set", _wrap_GPythonTestSuite_set, METH_VARARGS0x0001, (char *)"GPythonTestSuite_set(GPythonTestSuite self)"}, |
9318 | { (char *)"GPythonTestSuite_clone", _wrap_GPythonTestSuite_clone, METH_VARARGS0x0001, (char *)"GPythonTestSuite_clone(GPythonTestSuite self) -> GPythonTestSuite"}, |
9319 | { (char *)"GPythonTestSuite_append", _wrap_GPythonTestSuite_append, METH_VARARGS0x0001, (char *)"GPythonTestSuite_append(GPythonTestSuite self, PyObject * function, std::string const & name)"}, |
9320 | { (char *)"GPythonTestSuite_swigregister", GPythonTestSuite_swigregister, METH_VARARGS0x0001, NULL__null}, |
9321 | { (char *)"new_GTestCase", _wrap_new_GTestCase, METH_VARARGS0x0001, (char *)"\n" |
9322 | "GTestCase()\n" |
9323 | "GTestCase(GTestCase::ErrorKind const & kind, std::string const & name=\"\")\n" |
9324 | "GTestCase(GTestCase::ErrorKind const & kind)\n" |
9325 | "new_GTestCase(GTestCase test) -> GTestCase\n" |
9326 | ""}, |
9327 | { (char *)"delete_GTestCase", _wrap_delete_GTestCase, METH_VARARGS0x0001, (char *)"delete_GTestCase(GTestCase self)"}, |
9328 | { (char *)"GTestCase_clear", _wrap_GTestCase_clear, METH_VARARGS0x0001, (char *)"GTestCase_clear(GTestCase self)"}, |
9329 | { (char *)"GTestCase_clone", _wrap_GTestCase_clone, METH_VARARGS0x0001, (char *)"GTestCase_clone(GTestCase self) -> GTestCase"}, |
9330 | { (char *)"GTestCase_name", _wrap_GTestCase_name, METH_VARARGS0x0001, (char *)"\n" |
9331 | "name() -> std::string const\n" |
9332 | "GTestCase_name(GTestCase self, std::string const & name)\n" |
9333 | ""}, |
9334 | { (char *)"GTestCase_message", _wrap_GTestCase_message, METH_VARARGS0x0001, (char *)"\n" |
9335 | "message() -> std::string const\n" |
9336 | "GTestCase_message(GTestCase self, std::string const & message)\n" |
9337 | ""}, |
9338 | { (char *)"GTestCase_type", _wrap_GTestCase_type, METH_VARARGS0x0001, (char *)"\n" |
9339 | "type() -> std::string const\n" |
9340 | "GTestCase_type(GTestCase self, std::string const & type)\n" |
9341 | ""}, |
9342 | { (char *)"GTestCase_kind", _wrap_GTestCase_kind, METH_VARARGS0x0001, (char *)"\n" |
9343 | "kind() -> GTestCase::ErrorKind const\n" |
9344 | "GTestCase_kind(GTestCase self, GTestCase::ErrorKind const & kind)\n" |
9345 | ""}, |
9346 | { (char *)"GTestCase_passed", _wrap_GTestCase_passed, METH_VARARGS0x0001, (char *)"\n" |
9347 | "passed() -> bool const\n" |
9348 | "GTestCase_passed(GTestCase self, bool const & passed)\n" |
9349 | ""}, |
9350 | { (char *)"GTestCase_duration", _wrap_GTestCase_duration, METH_VARARGS0x0001, (char *)"\n" |
9351 | "duration() -> double const\n" |
9352 | "GTestCase_duration(GTestCase self, double const & duration)\n" |
9353 | ""}, |
9354 | { (char *)"GTestCase_copy", _wrap_GTestCase_copy, METH_VARARGS0x0001, (char *)"GTestCase_copy(GTestCase self) -> GTestCase"}, |
9355 | { (char *)"GTestCase_swigregister", GTestCase_swigregister, METH_VARARGS0x0001, NULL__null}, |
9356 | { NULL__null, NULL__null, 0, NULL__null } |
9357 | }; |
9358 | |
9359 | |
9360 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
9361 | |
9362 | static void *_p_GPythonTestSuiteTo_p_GTestSuite(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
9363 | return (void *)((GTestSuite *) ((GPythonTestSuite *) x)); |
9364 | } |
9365 | static void *_p_GTestCaseTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
9366 | return (void *)((GBase *) ((GTestCase *) x)); |
9367 | } |
9368 | static void *_p_GTestSuitesTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
9369 | return (void *)((GBase *) (GContainer *) ((GTestSuites *) x)); |
9370 | } |
9371 | static void *_p_GTestSuiteTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
9372 | return (void *)((GBase *) ((GTestSuite *) x)); |
9373 | } |
9374 | static void *_p_GPythonTestSuiteTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
9375 | return (void *)((GBase *) (GTestSuite *) ((GPythonTestSuite *) x)); |
9376 | } |
9377 | static void *_p_GContainerTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
9378 | return (void *)((GBase *) ((GContainer *) x)); |
9379 | } |
9380 | static void *_p_GTestSuitesTo_p_GContainer(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
9381 | return (void *)((GContainer *) ((GTestSuites *) x)); |
9382 | } |
9383 | static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0}; |
9384 | static swig_type_info _swigt__p_GContainer = {"_p_GContainer", "GContainer *", 0, 0, (void*)0, 0}; |
9385 | static swig_type_info _swigt__p_GException__test_error = {"_p_GException__test_error", "GException::test_error *", 0, 0, (void*)0, 0}; |
9386 | static swig_type_info _swigt__p_GException__test_failure = {"_p_GException__test_failure", "GException::test_failure *", 0, 0, (void*)0, 0}; |
9387 | static swig_type_info _swigt__p_GPythonTestSuite = {"_p_GPythonTestSuite", "GPythonTestSuite *", 0, 0, (void*)0, 0}; |
9388 | static swig_type_info _swigt__p_GTestCase = {"_p_GTestCase", "GTestCase *", 0, 0, (void*)0, 0}; |
9389 | static swig_type_info _swigt__p_GTestSuite = {"_p_GTestSuite", "GTestSuite *", 0, 0, (void*)0, 0}; |
9390 | static swig_type_info _swigt__p_GTestSuites = {"_p_GTestSuites", "GTestSuites *", 0, 0, (void*)0, 0}; |
9391 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
9392 | static swig_type_info _swigt__p_std__exception = {"_p_std__exception", "std::exception *", 0, 0, (void*)0, 0}; |
9393 | static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0}; |
9394 | static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0}; |
9395 | static swig_type_info _swigt__p_time_t = {"_p_time_t", "time_t *", 0, 0, (void*)0, 0}; |
9396 | |
9397 | static swig_type_info *swig_type_initial[] = { |
9398 | &_swigt__p_GBase, |
9399 | &_swigt__p_GContainer, |
9400 | &_swigt__p_GException__test_error, |
9401 | &_swigt__p_GException__test_failure, |
9402 | &_swigt__p_GPythonTestSuite, |
9403 | &_swigt__p_GTestCase, |
9404 | &_swigt__p_GTestSuite, |
9405 | &_swigt__p_GTestSuites, |
9406 | &_swigt__p_char, |
9407 | &_swigt__p_std__exception, |
9408 | &_swigt__p_std__invalid_argument, |
9409 | &_swigt__p_swig__SwigPyIterator, |
9410 | &_swigt__p_time_t, |
9411 | }; |
9412 | |
9413 | static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GTestCase, _p_GTestCaseTo_p_GBase, 0, 0}, {&_swigt__p_GTestSuites, _p_GTestSuitesTo_p_GBase, 0, 0}, {&_swigt__p_GTestSuite, _p_GTestSuiteTo_p_GBase, 0, 0}, {&_swigt__p_GPythonTestSuite, _p_GPythonTestSuiteTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GContainer, _p_GContainerTo_p_GBase, 0, 0},{0, 0, 0, 0}}; |
9414 | static swig_cast_info _swigc__p_GContainer[] = { {&_swigt__p_GTestSuites, _p_GTestSuitesTo_p_GContainer, 0, 0}, {&_swigt__p_GContainer, 0, 0, 0},{0, 0, 0, 0}}; |
9415 | static swig_cast_info _swigc__p_GException__test_error[] = { {&_swigt__p_GException__test_error, 0, 0, 0},{0, 0, 0, 0}}; |
9416 | static swig_cast_info _swigc__p_GException__test_failure[] = { {&_swigt__p_GException__test_failure, 0, 0, 0},{0, 0, 0, 0}}; |
9417 | static swig_cast_info _swigc__p_GPythonTestSuite[] = { {&_swigt__p_GPythonTestSuite, 0, 0, 0},{0, 0, 0, 0}}; |
9418 | static swig_cast_info _swigc__p_GTestCase[] = { {&_swigt__p_GTestCase, 0, 0, 0},{0, 0, 0, 0}}; |
9419 | static swig_cast_info _swigc__p_GTestSuite[] = { {&_swigt__p_GTestSuite, 0, 0, 0}, {&_swigt__p_GPythonTestSuite, _p_GPythonTestSuiteTo_p_GTestSuite, 0, 0},{0, 0, 0, 0}}; |
9420 | static swig_cast_info _swigc__p_GTestSuites[] = { {&_swigt__p_GTestSuites, 0, 0, 0},{0, 0, 0, 0}}; |
9421 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
9422 | static swig_cast_info _swigc__p_std__exception[] = { {&_swigt__p_std__exception, 0, 0, 0},{0, 0, 0, 0}}; |
9423 | static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}}; |
9424 | static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}}; |
9425 | static swig_cast_info _swigc__p_time_t[] = { {&_swigt__p_time_t, 0, 0, 0},{0, 0, 0, 0}}; |
9426 | |
9427 | static swig_cast_info *swig_cast_initial[] = { |
9428 | _swigc__p_GBase, |
9429 | _swigc__p_GContainer, |
9430 | _swigc__p_GException__test_error, |
9431 | _swigc__p_GException__test_failure, |
9432 | _swigc__p_GPythonTestSuite, |
9433 | _swigc__p_GTestCase, |
9434 | _swigc__p_GTestSuite, |
9435 | _swigc__p_GTestSuites, |
9436 | _swigc__p_char, |
9437 | _swigc__p_std__exception, |
9438 | _swigc__p_std__invalid_argument, |
9439 | _swigc__p_swig__SwigPyIterator, |
9440 | _swigc__p_time_t, |
9441 | }; |
9442 | |
9443 | |
9444 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
9445 | |
9446 | static swig_const_info swig_const_table[] = { |
9447 | {0, 0, 0, 0.0, 0, 0}}; |
9448 | |
9449 | #ifdef __cplusplus199711L |
9450 | } |
9451 | #endif |
9452 | /* ----------------------------------------------------------------------------- |
9453 | * Type initialization: |
9454 | * This problem is tough by the requirement that no dynamic |
9455 | * memory is used. Also, since swig_type_info structures store pointers to |
9456 | * swig_cast_info structures and swig_cast_info structures store pointers back |
9457 | * to swig_type_info structures, we need some lookup code at initialization. |
9458 | * The idea is that swig generates all the structures that are needed. |
9459 | * The runtime then collects these partially filled structures. |
9460 | * The SWIG_InitializeModule function takes these initial arrays out of |
9461 | * swig_module, and does all the lookup, filling in the swig_module.types |
9462 | * array with the correct data and linking the correct swig_cast_info |
9463 | * structures together. |
9464 | * |
9465 | * The generated swig_type_info structures are assigned staticly to an initial |
9466 | * array. We just loop through that array, and handle each type individually. |
9467 | * First we lookup if this type has been already loaded, and if so, use the |
9468 | * loaded structure instead of the generated one. Then we have to fill in the |
9469 | * cast linked list. The cast data is initially stored in something like a |
9470 | * two-dimensional array. Each row corresponds to a type (there are the same |
9471 | * number of rows as there are in the swig_type_initial array). Each entry in |
9472 | * a column is one of the swig_cast_info structures for that type. |
9473 | * The cast_initial array is actually an array of arrays, because each row has |
9474 | * a variable number of columns. So to actually build the cast linked list, |
9475 | * we find the array of casts associated with the type, and loop through it |
9476 | * adding the casts to the list. The one last trick we need to do is making |
9477 | * sure the type pointer in the swig_cast_info struct is correct. |
9478 | * |
9479 | * First off, we lookup the cast->type name to see if it is already loaded. |
9480 | * There are three cases to handle: |
9481 | * 1) If the cast->type has already been loaded AND the type we are adding |
9482 | * casting info to has not been loaded (it is in this module), THEN we |
9483 | * replace the cast->type pointer with the type pointer that has already |
9484 | * been loaded. |
9485 | * 2) If BOTH types (the one we are adding casting info to, and the |
9486 | * cast->type) are loaded, THEN the cast info has already been loaded by |
9487 | * the previous module so we just ignore it. |
9488 | * 3) Finally, if cast->type has not already been loaded, then we add that |
9489 | * swig_cast_info to the linked list (because the cast->type) pointer will |
9490 | * be correct. |
9491 | * ----------------------------------------------------------------------------- */ |
9492 | |
9493 | #ifdef __cplusplus199711L |
9494 | extern "C" { |
9495 | #if 0 |
9496 | } /* c-mode */ |
9497 | #endif |
9498 | #endif |
9499 | |
9500 | #if 0 |
9501 | #define SWIGRUNTIME_DEBUG |
9502 | #endif |
9503 | |
9504 | |
9505 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
9506 | SWIG_InitializeModule(void *clientdata) { |
9507 | size_t i; |
9508 | swig_module_info *module_head, *iter; |
9509 | int found, init; |
9510 | |
9511 | /* check to see if the circular list has been setup, if not, set it up */ |
9512 | if (swig_module.next==0) { |
9513 | /* Initialize the swig_module */ |
9514 | swig_module.type_initial = swig_type_initial; |
9515 | swig_module.cast_initial = swig_cast_initial; |
9516 | swig_module.next = &swig_module; |
9517 | init = 1; |
9518 | } else { |
9519 | init = 0; |
9520 | } |
9521 | |
9522 | /* Try and load any already created modules */ |
9523 | module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata); |
9524 | if (!module_head) { |
9525 | /* This is the first module loaded for this interpreter */ |
9526 | /* so set the swig module into the interpreter */ |
9527 | SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module); |
9528 | module_head = &swig_module; |
Value stored to 'module_head' is never read | |
9529 | } else { |
9530 | /* the interpreter has loaded a SWIG module, but has it loaded this one? */ |
9531 | found=0; |
9532 | iter=module_head; |
9533 | do { |
9534 | if (iter==&swig_module) { |
9535 | found=1; |
9536 | break; |
9537 | } |
9538 | iter=iter->next; |
9539 | } while (iter!= module_head); |
9540 | |
9541 | /* if the is found in the list, then all is done and we may leave */ |
9542 | if (found) return; |
9543 | /* otherwise we must add out module into the list */ |
9544 | swig_module.next = module_head->next; |
9545 | module_head->next = &swig_module; |
9546 | } |
9547 | |
9548 | /* When multiple interpreters are used, a module could have already been initialized in |
9549 | a different interpreter, but not yet have a pointer in this interpreter. |
9550 | In this case, we do not want to continue adding types... everything should be |
9551 | set up already */ |
9552 | if (init == 0) return; |
9553 | |
9554 | /* Now work on filling in swig_module.types */ |
9555 | #ifdef SWIGRUNTIME_DEBUG |
9556 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); |
9557 | #endif |
9558 | for (i = 0; i < swig_module.size; ++i) { |
9559 | swig_type_info *type = 0; |
9560 | swig_type_info *ret; |
9561 | swig_cast_info *cast; |
9562 | |
9563 | #ifdef SWIGRUNTIME_DEBUG |
9564 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
9565 | #endif |
9566 | |
9567 | /* if there is another module already loaded */ |
9568 | if (swig_module.next != &swig_module) { |
9569 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); |
9570 | } |
9571 | if (type) { |
9572 | /* Overwrite clientdata field */ |
9573 | #ifdef SWIGRUNTIME_DEBUG |
9574 | printf("SWIG_InitializeModule: found type %s\n", type->name); |
9575 | #endif |
9576 | if (swig_module.type_initial[i]->clientdata) { |
9577 | type->clientdata = swig_module.type_initial[i]->clientdata; |
9578 | #ifdef SWIGRUNTIME_DEBUG |
9579 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
9580 | #endif |
9581 | } |
9582 | } else { |
9583 | type = swig_module.type_initial[i]; |
9584 | } |
9585 | |
9586 | /* Insert casting types */ |
9587 | cast = swig_module.cast_initial[i]; |
9588 | while (cast->type) { |
9589 | /* Don't need to add information already in the list */ |
9590 | ret = 0; |
9591 | #ifdef SWIGRUNTIME_DEBUG |
9592 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
9593 | #endif |
9594 | if (swig_module.next != &swig_module) { |
9595 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); |
9596 | #ifdef SWIGRUNTIME_DEBUG |
9597 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
9598 | #endif |
9599 | } |
9600 | if (ret) { |
9601 | if (type == swig_module.type_initial[i]) { |
9602 | #ifdef SWIGRUNTIME_DEBUG |
9603 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
9604 | #endif |
9605 | cast->type = ret; |
9606 | ret = 0; |
9607 | } else { |
9608 | /* Check for casting already in the list */ |
9609 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); |
9610 | #ifdef SWIGRUNTIME_DEBUG |
9611 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
9612 | #endif |
9613 | if (!ocast) ret = 0; |
9614 | } |
9615 | } |
9616 | |
9617 | if (!ret) { |
9618 | #ifdef SWIGRUNTIME_DEBUG |
9619 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
9620 | #endif |
9621 | if (type->cast) { |
9622 | type->cast->prev = cast; |
9623 | cast->next = type->cast; |
9624 | } |
9625 | type->cast = cast; |
9626 | } |
9627 | cast++; |
9628 | } |
9629 | /* Set entry in modules->types array equal to the type */ |
9630 | swig_module.types[i] = type; |
9631 | } |
9632 | swig_module.types[i] = 0; |
9633 | |
9634 | #ifdef SWIGRUNTIME_DEBUG |
9635 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
9636 | for (i = 0; i < swig_module.size; ++i) { |
9637 | int j = 0; |
9638 | swig_cast_info *cast = swig_module.cast_initial[i]; |
9639 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
9640 | while (cast->type) { |
9641 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); |
9642 | cast++; |
9643 | ++j; |
9644 | } |
9645 | printf("---- Total casts: %d\n",j); |
9646 | } |
9647 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
9648 | #endif |
9649 | } |
9650 | |
9651 | /* This function will propagate the clientdata field of type to |
9652 | * any new swig_type_info structures that have been added into the list |
9653 | * of equivalent types. It is like calling |
9654 | * SWIG_TypeClientData(type, clientdata) a second time. |
9655 | */ |
9656 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
9657 | SWIG_PropagateClientData(void) { |
9658 | size_t i; |
9659 | swig_cast_info *equiv; |
9660 | static int init_run = 0; |
9661 | |
9662 | if (init_run) return; |
9663 | init_run = 1; |
9664 | |
9665 | for (i = 0; i < swig_module.size; i++) { |
9666 | if (swig_module.types[i]->clientdata) { |
9667 | equiv = swig_module.types[i]->cast; |
9668 | while (equiv) { |
9669 | if (!equiv->converter) { |
9670 | if (equiv->type && !equiv->type->clientdata) |
9671 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); |
9672 | } |
9673 | equiv = equiv->next; |
9674 | } |
9675 | } |
9676 | } |
9677 | } |
9678 | |
9679 | #ifdef __cplusplus199711L |
9680 | #if 0 |
9681 | { |
9682 | /* c-mode */ |
9683 | #endif |
9684 | } |
9685 | #endif |
9686 | |
9687 | |
9688 | |
9689 | #ifdef __cplusplus199711L |
9690 | extern "C" { |
9691 | #endif |
9692 | |
9693 | /* Python-specific SWIG API */ |
9694 | #define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink() |
9695 | #define SWIG_addvarlink(p, name, get_attr, set_attr)SWIG_Python_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) |
9696 | #define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) |
9697 | |
9698 | /* ----------------------------------------------------------------------------- |
9699 | * global variable support code. |
9700 | * ----------------------------------------------------------------------------- */ |
9701 | |
9702 | typedef struct swig_globalvar { |
9703 | char *name; /* Name of global variable */ |
9704 | PyObject *(*get_attr)(void); /* Return the current value */ |
9705 | int (*set_attr)(PyObject *); /* Set the value */ |
9706 | struct swig_globalvar *next; |
9707 | } swig_globalvar; |
9708 | |
9709 | typedef struct swig_varlinkobject { |
9710 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
9711 | swig_globalvar *vars; |
9712 | } swig_varlinkobject; |
9713 | |
9714 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
9715 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { |
9716 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
9717 | return PyUnicode_InternFromString("<Swig global variables>"); |
9718 | #else |
9719 | return PyString_FromString("<Swig global variables>"); |
9720 | #endif |
9721 | } |
9722 | |
9723 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
9724 | swig_varlink_str(swig_varlinkobject *v) { |
9725 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
9726 | PyObject *str = PyUnicode_InternFromString("("); |
9727 | PyObject *tail; |
9728 | PyObject *joined; |
9729 | swig_globalvar *var; |
9730 | for (var = v->vars; var; var=var->next) { |
9731 | tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name); |
9732 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
9733 | Py_DecRef(str); |
9734 | Py_DecRef(tail); |
9735 | str = joined; |
9736 | if (var->next) { |
9737 | tail = PyUnicode_InternFromString(", "); |
9738 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
9739 | Py_DecRef(str); |
9740 | Py_DecRef(tail); |
9741 | str = joined; |
9742 | } |
9743 | } |
9744 | tail = PyUnicode_InternFromString(")"); |
9745 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
9746 | Py_DecRef(str); |
9747 | Py_DecRef(tail); |
9748 | str = joined; |
9749 | #else |
9750 | PyObject *str = PyString_FromString("("); |
9751 | swig_globalvar *var; |
9752 | for (var = v->vars; var; var=var->next) { |
9753 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); |
9754 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); |
9755 | } |
9756 | PyString_ConcatAndDel(&str,PyString_FromString(")")); |
9757 | #endif |
9758 | return str; |
9759 | } |
9760 | |
9761 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
9762 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { |
9763 | char *tmp; |
9764 | PyObject *str = swig_varlink_str(v); |
9765 | fprintf(fp,"Swig global variables "); |
9766 | fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); |
9767 | SWIG_Python_str_DelForPy3(tmp); |
9768 | Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(str)))); } while (0); |
9769 | return 0; |
9770 | } |
9771 | |
9772 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
9773 | swig_varlink_dealloc(swig_varlinkobject *v) { |
9774 | swig_globalvar *var = v->vars; |
9775 | while (var) { |
9776 | swig_globalvar *n = var->next; |
9777 | free(var->name); |
9778 | free(var); |
9779 | var = n; |
9780 | } |
9781 | } |
9782 | |
9783 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
9784 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
9785 | PyObject *res = NULL__null; |
9786 | swig_globalvar *var = v->vars; |
9787 | while (var) { |
9788 | if (strcmp(var->name,n) == 0) { |
9789 | res = (*var->get_attr)(); |
9790 | break; |
9791 | } |
9792 | var = var->next; |
9793 | } |
9794 | if (res == NULL__null && !PyErr_Occurred()) { |
9795 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
9796 | } |
9797 | return res; |
9798 | } |
9799 | |
9800 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
9801 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
9802 | int res = 1; |
9803 | swig_globalvar *var = v->vars; |
9804 | while (var) { |
9805 | if (strcmp(var->name,n) == 0) { |
9806 | res = (*var->set_attr)(p); |
9807 | break; |
9808 | } |
9809 | var = var->next; |
9810 | } |
9811 | if (res == 1 && !PyErr_Occurred()) { |
9812 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
9813 | } |
9814 | return res; |
9815 | } |
9816 | |
9817 | SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject* |
9818 | swig_varlink_type(void) { |
9819 | static char varlink__doc__[] = "Swig var link object"; |
9820 | static PyTypeObject varlink_type; |
9821 | static int type_init = 0; |
9822 | if (!type_init) { |
9823 | const PyTypeObject tmp = { |
9824 | /* PyObject header changed in Python 3 */ |
9825 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
9826 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
9827 | #else |
9828 | PyObject_HEAD_INIT(NULL)1, __null, |
9829 | 0, /* ob_size */ |
9830 | #endif |
9831 | (char *)"swigvarlink", /* tp_name */ |
9832 | sizeof(swig_varlinkobject), /* tp_basicsize */ |
9833 | 0, /* tp_itemsize */ |
9834 | (destructor) swig_varlink_dealloc, /* tp_dealloc */ |
9835 | (printfunc) swig_varlink_print, /* tp_print */ |
9836 | (getattrfunc) swig_varlink_getattr, /* tp_getattr */ |
9837 | (setattrfunc) swig_varlink_setattr, /* tp_setattr */ |
9838 | 0, /* tp_compare */ |
9839 | (reprfunc) swig_varlink_repr, /* tp_repr */ |
9840 | 0, /* tp_as_number */ |
9841 | 0, /* tp_as_sequence */ |
9842 | 0, /* tp_as_mapping */ |
9843 | 0, /* tp_hash */ |
9844 | 0, /* tp_call */ |
9845 | (reprfunc) swig_varlink_str, /* tp_str */ |
9846 | 0, /* tp_getattro */ |
9847 | 0, /* tp_setattro */ |
9848 | 0, /* tp_as_buffer */ |
9849 | 0, /* tp_flags */ |
9850 | varlink__doc__, /* tp_doc */ |
9851 | 0, /* tp_traverse */ |
9852 | 0, /* tp_clear */ |
9853 | 0, /* tp_richcompare */ |
9854 | 0, /* tp_weaklistoffset */ |
9855 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
9856 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
9857 | #endif |
9858 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
9859 | 0, /* tp_del */ |
9860 | #endif |
9861 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
9862 | 0, /* tp_version */ |
9863 | #endif |
9864 | #ifdef COUNT_ALLOCS |
9865 | 0,0,0,0 /* tp_alloc -> tp_next */ |
9866 | #endif |
9867 | }; |
9868 | varlink_type = tmp; |
9869 | type_init = 1; |
9870 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
9871 | varlink_type.ob_type = &PyType_Type; |
9872 | #else |
9873 | if (PyType_Ready(&varlink_type) < 0) |
9874 | return NULL__null; |
9875 | #endif |
9876 | } |
9877 | return &varlink_type; |
9878 | } |
9879 | |
9880 | /* Create a variable linking object for use later */ |
9881 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
9882 | SWIG_Python_newvarlink(void) { |
9883 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type())( (swig_varlinkobject *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (swig_varlink_type())->tp_basicsize ) ), (swig_varlink_type ())) ); |
9884 | if (result) { |
9885 | result->vars = 0; |
9886 | } |
9887 | return ((PyObject*) result); |
9888 | } |
9889 | |
9890 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
9891 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
9892 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
9893 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); |
9894 | if (gv) { |
9895 | size_t size = strlen(name)+1; |
9896 | gv->name = (char *)malloc(size); |
9897 | if (gv->name) { |
9898 | strncpy(gv->name,name,size); |
9899 | gv->get_attr = get_attr; |
9900 | gv->set_attr = set_attr; |
9901 | gv->next = v->vars; |
9902 | } |
9903 | } |
9904 | v->vars = gv; |
9905 | } |
9906 | |
9907 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
9908 | SWIG_globals(void) { |
9909 | static PyObject *_SWIG_globals = 0; |
9910 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink(); |
9911 | return _SWIG_globals; |
9912 | } |
9913 | |
9914 | /* ----------------------------------------------------------------------------- |
9915 | * constants/methods manipulation |
9916 | * ----------------------------------------------------------------------------- */ |
9917 | |
9918 | /* Install Constants */ |
9919 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
9920 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
9921 | PyObject *obj = 0; |
9922 | size_t i; |
9923 | for (i = 0; constants[i].type; ++i) { |
9924 | switch(constants[i].type) { |
9925 | case SWIG_PY_POINTER4: |
9926 | obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants [i]).ptype, 0); |
9927 | break; |
9928 | case SWIG_PY_BINARY5: |
9929 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue , *(constants[i].ptype)); |
9930 | break; |
9931 | default: |
9932 | obj = 0; |
9933 | break; |
9934 | } |
9935 | if (obj) { |
9936 | PyDict_SetItemString(d, constants[i].name, obj); |
9937 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
9938 | } |
9939 | } |
9940 | } |
9941 | |
9942 | /* -----------------------------------------------------------------------------*/ |
9943 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
9944 | /* -----------------------------------------------------------------------------*/ |
9945 | |
9946 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
9947 | SWIG_Python_FixMethods(PyMethodDef *methods, |
9948 | swig_const_info *const_table, |
9949 | swig_type_info **types, |
9950 | swig_type_info **types_initial) { |
9951 | size_t i; |
9952 | for (i = 0; methods[i].ml_name; ++i) { |
9953 | const char *c = methods[i].ml_doc; |
9954 | if (c && (c = strstr(c, "swig_ptr: "))) { |
9955 | int j; |
9956 | swig_const_info *ci = 0; |
9957 | const char *name = c + 10; |
9958 | for (j = 0; const_table[j].type; ++j) { |
9959 | if (strncmp(const_table[j].name, name, |
9960 | strlen(const_table[j].name)) == 0) { |
9961 | ci = &(const_table[j]); |
9962 | break; |
9963 | } |
9964 | } |
9965 | if (ci) { |
9966 | void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0; |
9967 | if (ptr) { |
9968 | size_t shift = (ci->ptype) - types; |
9969 | swig_type_info *ty = types_initial[shift]; |
9970 | size_t ldoc = (c - methods[i].ml_doc); |
9971 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; |
9972 | char *ndoc = (char*)malloc(ldoc + lptr + 10); |
9973 | if (ndoc) { |
9974 | char *buff = ndoc; |
9975 | strncpy(buff, methods[i].ml_doc, ldoc); |
9976 | buff += ldoc; |
9977 | strncpy(buff, "swig_ptr: ", 10); |
9978 | buff += 10; |
9979 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); |
9980 | methods[i].ml_doc = ndoc; |
9981 | } |
9982 | } |
9983 | } |
9984 | } |
9985 | } |
9986 | } |
9987 | |
9988 | #ifdef __cplusplus199711L |
9989 | } |
9990 | #endif |
9991 | |
9992 | /* -----------------------------------------------------------------------------* |
9993 | * Partial Init method |
9994 | * -----------------------------------------------------------------------------*/ |
9995 | |
9996 | #ifdef __cplusplus199711L |
9997 | extern "C" |
9998 | #endif |
9999 | |
10000 | SWIGEXPORT__attribute__ ((visibility("default"))) |
10001 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
10002 | PyObject* |
10003 | #else |
10004 | void |
10005 | #endif |
10006 | SWIG_initinit_test(void) { |
10007 | PyObject *m, *d, *md; |
10008 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
10009 | static struct PyModuleDef SWIG_module = { |
10010 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
10011 | PyModuleDef_HEAD_INIT, |
10012 | # else |
10013 | { |
10014 | PyObject_HEAD_INIT(NULL)1, __null, |
10015 | NULL__null, /* m_init */ |
10016 | 0, /* m_index */ |
10017 | NULL__null, /* m_copy */ |
10018 | }, |
10019 | # endif |
10020 | (char *) SWIG_name"_test", |
10021 | NULL__null, |
10022 | -1, |
10023 | SwigMethods, |
10024 | NULL__null, |
10025 | NULL__null, |
10026 | NULL__null, |
10027 | NULL__null |
10028 | }; |
10029 | #endif |
10030 | |
10031 | #if defined(SWIGPYTHON_BUILTIN) |
10032 | static SwigPyClientData SwigPyObject_clientdata = { |
10033 | 0, 0, 0, 0, 0, 0, 0 |
10034 | }; |
10035 | static PyGetSetDef this_getset_def = { |
10036 | (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null |
10037 | }; |
10038 | static SwigPyGetSet thisown_getset_closure = { |
10039 | (PyCFunction) SwigPyObject_own, |
10040 | (PyCFunction) SwigPyObject_own |
10041 | }; |
10042 | static PyGetSetDef thisown_getset_def = { |
10043 | (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure |
10044 | }; |
10045 | PyObject *metatype_args; |
10046 | PyTypeObject *builtin_pytype; |
10047 | int builtin_base_count; |
10048 | swig_type_info *builtin_basetype; |
10049 | PyObject *tuple; |
10050 | PyGetSetDescrObject *static_getset; |
10051 | PyTypeObject *metatype; |
10052 | SwigPyClientData *cd; |
10053 | PyObject *public_interface, *public_symbol; |
10054 | PyObject *this_descr; |
10055 | PyObject *thisown_descr; |
10056 | int i; |
10057 | |
10058 | (void)builtin_pytype; |
10059 | (void)builtin_base_count; |
10060 | (void)builtin_basetype; |
10061 | (void)tuple; |
10062 | (void)static_getset; |
10063 | |
10064 | /* metatype is used to implement static member variables. */ |
10065 | metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); |
10066 | assert(metatype_args)((void)0); |
10067 | metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null); |
10068 | assert(metatype)((void)0); |
10069 | Py_DECREF(metatype_args)do { if ( --((PyObject*)(metatype_args))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(metatype_args)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(metatype_args)))) ; } while (0); |
10070 | metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; |
10071 | assert(PyType_Ready(metatype) >= 0)((void)0); |
10072 | #endif |
10073 | |
10074 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
10075 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
10076 | |
10077 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
10078 | m = PyModule_Create(&SWIG_module); |
10079 | #else |
10080 | m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_test", SwigMethods, (char *)__null , (PyObject *)__null, 1013); |
10081 | #endif |
10082 | md = d = PyModule_GetDict(m); |
10083 | (void)md; |
10084 | |
10085 | SWIG_InitializeModule(0); |
10086 | |
10087 | #ifdef SWIGPYTHON_BUILTIN |
10088 | SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module , "_p_SwigPyObject"); |
10089 | assert(SwigPyObject_stype)((void)0); |
10090 | cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; |
10091 | if (!cd) { |
10092 | SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; |
10093 | SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); |
10094 | } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { |
10095 | PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); |
10096 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
10097 | return NULL__null; |
10098 | # else |
10099 | return; |
10100 | # endif |
10101 | } |
10102 | |
10103 | /* All objects have a 'this' attribute */ |
10104 | this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); |
10105 | (void)this_descr; |
10106 | |
10107 | /* All objects have a 'thisown' attribute */ |
10108 | thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); |
10109 | (void)thisown_descr; |
10110 | |
10111 | public_interface = PyList_New(0); |
10112 | public_symbol = 0; |
10113 | (void)public_symbol; |
10114 | |
10115 | PyDict_SetItemString(md, "__all__", public_interface); |
10116 | Py_DECREF(public_interface)do { if ( --((PyObject*)(public_interface))->ob_refcnt != 0 ) ; else ( (*(((PyObject*)((PyObject *)(public_interface)))-> ob_type)->tp_dealloc)((PyObject *)((PyObject *)(public_interface )))); } while (0); |
10117 | for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i) |
10118 | SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); |
10119 | for (i = 0; swig_const_table[i].name != 0; ++i) |
10120 | SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); |
10121 | #endif |
10122 | |
10123 | SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table); |
10124 | |
10125 | SWIG_Python_SetConstant(d, "GTestCase_FAIL_TEST",SWIG_From_int(static_cast< int >(GTestCase::FAIL_TEST))); |
10126 | SWIG_Python_SetConstant(d, "GTestCase_ERROR_TEST",SWIG_From_int(static_cast< int >(GTestCase::ERROR_TEST))); |
10127 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
10128 | return m; |
10129 | #else |
10130 | return; |
10131 | #endif |
10132 | } |
10133 |