We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8738d3 commit 82e65ebCopy full SHA for 82e65eb
src/function.rs
@@ -135,6 +135,10 @@ impl<'ctx> Function<'ctx> {
135
pub fn get_param(&self, idx: i32) -> Parameter<'ctx> {
136
unsafe {
137
let ptr = gccjit_sys::gcc_jit_function_get_param(self.ptr, idx);
138
+ #[cfg(debug_assertions)]
139
+ if let Ok(Some(error)) = self.to_object().get_context().get_last_error() {
140
+ panic!("{} ({:?})", error, self);
141
+ }
142
parameter::from_ptr(ptr)
143
}
144
0 commit comments