@@ -86,7 +86,7 @@ PyAPI_DATA(PyTypeObject) _PyExc_BaseException;
86
86
/* upcall macros for calling into Python */
87
87
88
88
/* Call function with return type 'PyObject *'; does polyglot cast and error handling */
89
- #define UPCALL_O (__recv__ , __name__ , ...) handle_exception_and_cast (PY_TRUFFLE_LANDING((__recv__), polyglot_from_string((__name__), SRC_CS), ##__VA_ARGS__))
89
+ #define UPCALL_O (__recv__ , __name__ , ...) handle_exception (PY_TRUFFLE_LANDING((__recv__), polyglot_from_string((__name__), SRC_CS), ##__VA_ARGS__))
90
90
91
91
/* Call function with a primitive return; no polyglot cast but error handling */
92
92
#define UPCALL_P (__recv__ , __name__ , ...) (PY_TRUFFLE_LANDING_L((__recv__), polyglot_from_string((__name__), SRC_CS), ##__VA_ARGS__))
@@ -98,13 +98,13 @@ PyAPI_DATA(PyTypeObject) _PyExc_BaseException;
98
98
#define UPCALL_L (__recv__ , __name__ , ...) UPCALL_P(__recv__, __name__, ##__VA_ARGS__)
99
99
100
100
/* Call function with return type 'double'; no polyglot cast but error handling */
101
- #define UPCALL_D (__recv__ , __name__ , ...) handle_exception_and_cast (PY_TRUFFLE_LANDING_D((__recv__), polyglot_from_string((__name__), SRC_CS), ##__VA_ARGS__))
101
+ #define UPCALL_D (__recv__ , __name__ , ...) handle_exception (PY_TRUFFLE_LANDING_D((__recv__), polyglot_from_string((__name__), SRC_CS), ##__VA_ARGS__))
102
102
103
103
/* Call function with return type 'void*'; no polyglot cast and no error handling */
104
104
#define UPCALL_PTR (__name__ , ...) (PY_TRUFFLE_LANDING_PTR(polyglot_from_string((__name__), SRC_CS), ##__VA_ARGS__))
105
105
106
106
/* Call function of 'python_cext' module with return type 'PyObject *'; does polyglot cast and error handling */
107
- #define UPCALL_CEXT_O (__name__ , ...) handle_exception_and_cast (PY_TRUFFLE_CEXT_LANDING(polyglot_from_string((__name__), SRC_CS), ##__VA_ARGS__))
107
+ #define UPCALL_CEXT_O (__name__ , ...) handle_exception (PY_TRUFFLE_CEXT_LANDING(polyglot_from_string((__name__), SRC_CS), ##__VA_ARGS__))
108
108
109
109
/* Call void function of 'python_cext' module; no polyglot cast and no error handling */
110
110
#define UPCALL_CEXT_VOID (__name__ , ...) (PY_TRUFFLE_CEXT_LANDING(polyglot_from_string((__name__), SRC_CS), ##__VA_ARGS__))
@@ -139,7 +139,6 @@ PyAPI_DATA(PyTypeObject) _PyExc_BaseException;
139
139
#define as_float (obj ) ((float)as_double(obj))
140
140
141
141
142
- PyObject * handle_exception_and_cast (void * val );
143
142
void * handle_exception (void * val );
144
143
void * native_to_java (PyObject * obj );
145
144
extern void * to_java (PyObject * obj );
0 commit comments