File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -109,12 +109,12 @@ def struct_by_value?(type)
109
109
}
110
110
111
111
RBIMPL_ATTR_NORETURN()
112
- static inline void rb_tr_exception_from_java_jump(void ) {
112
+ static inline void rb_tr_exception_from_java_jump(const char *function ) {
113
113
if (LIKELY(rb_tr_jmp_buf != NULL)) {
114
114
// fprintf(stderr, "There was an exception, longjmp()'ing");
115
115
RUBY_LONGJMP(*rb_tr_jmp_buf, 1);
116
116
} else {
117
- fprintf(stderr, "ERROR: There was an exception in Java but rb_tr_jmp_buf is NULL.");
117
+ fprintf(stderr, "ERROR: There was a Java exception when returning from %s() but rb_tr_jmp_buf is NULL.", function );
118
118
abort();
119
119
}
120
120
}
@@ -217,7 +217,7 @@ def struct_by_value?(type)
217
217
else
218
218
f . puts " if (UNLIKELY(rb_tr_exception_from_java())) {"
219
219
end
220
- f . puts " rb_tr_exception_from_java_jump();"
220
+ f . puts " rb_tr_exception_from_java_jump(#{ function_name . dump } );"
221
221
f . puts " }"
222
222
f . puts " UNREACHABLE;" if no_return
223
223
else
@@ -229,7 +229,7 @@ def struct_by_value?(type)
229
229
end
230
230
f . puts " #{ return_type } _result = impl_#{ function_name } (#{ argument_names } );"
231
231
f . puts " if (UNLIKELY(rb_tr_exception_from_java())) {"
232
- f . puts " rb_tr_exception_from_java_jump();"
232
+ f . puts " rb_tr_exception_from_java_jump(#{ function_name . dump } );"
233
233
f . puts " }"
234
234
f . puts " return _result;"
235
235
end
You can’t perform that action at this time.
0 commit comments